yihong0618 / xiaogpt

Play ChatGPT and other LLM with Xiaomi AI Speaker
MIT License
5.86k stars 817 forks source link

feat(tts): Support AzureTTS. #474

Closed laipz8200 closed 2 months ago

laipz8200 commented 2 months ago

relate to #470 .

  1. Add AzureTTS
  2. Update README.md
  3. Add azure_tts_speech_key and azure_tts_service_region to Config
  4. Update example configure file and parser
  5. Add azure-cognitiveservices-speech to dependencies.

My device is L05B so I cannot test it in a real environment, but the voice file can generated successfully and logged.

yihong0618 commented 2 months ago

clean and nice code, thanks