diff --git a/README.md b/README.md index 53662b3..64e8a2d 100644 --- a/README.md +++ b/README.md @@ -48,10 +48,8 @@ tts: ### Options - [`voice`](https://docs.microsoft.com/zh-CN/azure/cognitive-services/speech-service/speech-synthesis-markup?tabs=csharp#use-multiple-voices) -- [`rate` / `volume`](https://docs.microsoft.com/zh-CN/azure/cognitive-services/speech-service/speech-synthesis-markup?tabs=csharp#adjust-prosody) +- [`pitch` / `rate` / `volume`](https://docs.microsoft.com/zh-CN/azure/cognitive-services/speech-service/speech-synthesis-markup?tabs=csharp#adjust-prosody) -> `pitch` is no longer supported ([#24](https://github.com/hasscc/hass-edge-tts/issues/24)). -> > `style` / `styledegree` / `role` / `contour` are no longer supported ([#8](https://github.com/hasscc/hass-edge-tts/issues/8)). ### Basic example diff --git a/custom_components/edge_tts/manifest.json b/custom_components/edge_tts/manifest.json index bfb0aec..93fce7a 100644 --- a/custom_components/edge_tts/manifest.json +++ b/custom_components/edge_tts/manifest.json @@ -5,6 +5,6 @@ "documentation": "https://github.com/hasscc/hass-edge-tts", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/hasscc/hass-edge-tts/issues", - "requirements": ["edge-tts==6.1.8"], + "requirements": ["edge-tts==6.1.9"], "version": "0.0.1" } diff --git a/custom_components/edge_tts/tts.py b/custom_components/edge_tts/tts.py index 4c8a627..a5565a8 100644 --- a/custom_components/edge_tts/tts.py +++ b/custom_components/edge_tts/tts.py @@ -5,7 +5,7 @@ import voluptuous as vol from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider -EDGE_TTS_VERSION = '6.1.8' +EDGE_TTS_VERSION = '6.1.9' try: import edge_tts if '__version__' not in dir(edge_tts) or edge_tts.__version__ != EDGE_TTS_VERSION: @@ -395,18 +395,12 @@ async def async_get_tts_audio(self, message, language, options=None): ) break - if opt.get('pitch') is not None: - _LOGGER.warning( - 'Edge TTS option pitch is no longer supported, ' - 'please remove it from your automation or script. ' - 'See: https://github.com/hasscc/hass-edge-tts/issues/24' - ) - _LOGGER.debug('%s: %s', self.name, [message, opt]) mp3 = b'' tts = EdgeCommunicate( message, voice=voice, + pitch=opt.get('pitch', '+0%'), rate=opt.get('rate', '+0%'), volume=opt.get('volume', '+0%'), )