From 59243731ccf9ae30fd71afe46c0f845d1d3bbd2b Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 10 Sep 2021 21:40:07 +0200 Subject: [PATCH] Exchanged Google TTS with picotts, which generates everything locally. --- configuration.yaml | 8 +- custom_components/picotts_remote/__init__.py | 1 + .../__pycache__/__init__.cpython-39.pyc | Bin 0 -> 184 bytes .../__pycache__/tts.cpython-39.pyc | Bin 0 -> 2845 bytes .../picotts_remote/manifest.json | 9 ++ custom_components/picotts_remote/tts.py | 88 ++++++++++++++++++ 6 files changed, 100 insertions(+), 6 deletions(-) create mode 100644 custom_components/picotts_remote/__init__.py create mode 100644 custom_components/picotts_remote/__pycache__/__init__.cpython-39.pyc create mode 100644 custom_components/picotts_remote/__pycache__/tts.cpython-39.pyc create mode 100644 custom_components/picotts_remote/manifest.json create mode 100644 custom_components/picotts_remote/tts.py diff --git a/configuration.yaml b/configuration.yaml index dddd812..379ed6a 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -9,7 +9,8 @@ http: # Text to speech tts: - - platform: google_translate + - platform: picotts_remote + language: "de-DE" # Include modules group: !include groups.yaml @@ -66,8 +67,3 @@ media_player: platform: mpd host: 192.168.122.48 scan_interval: 1 - -# Configure Text to speech engine -tts: - platform: google_translate - service_name: google_say diff --git a/custom_components/picotts_remote/__init__.py b/custom_components/picotts_remote/__init__.py new file mode 100644 index 0000000..7ffc80d --- /dev/null +++ b/custom_components/picotts_remote/__init__.py @@ -0,0 +1 @@ +"""Support for pico integration.""" diff --git a/custom_components/picotts_remote/__pycache__/__init__.cpython-39.pyc b/custom_components/picotts_remote/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c378e44d7486bff421404bbddde394ec7f9012ec GIT binary patch literal 184 zcmYe~<>g`kg1u4Ji7G()F^Gc<7=auIATH(r5-AK(3@MDk44O<;vcaVV1^GoK3TgR8 z3I&xg5h;k9U0%w4=G{NuO8thmc(zGA|^2*sUCYS$LTid~yI z{+^v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