kxxt / aspeak

A simple text-to-speech client for Azure TTS API.
MIT License
494 stars 57 forks source link

error #46

Closed execution7 closed 1 year ago

execution7 commented 1 year ago

Traceback (most recent call last): File "/opt/homebrew/bin/aspeak", line 8, in sys.exit(main()) File "/opt/homebrew/lib/python3.9/site-packages/aspeak/cli/main.py", line 138, in main speech = create_speech(args.locale, args.voice, audio_format) File "/opt/homebrew/lib/python3.9/site-packages/aspeak/api/api.py", line 138, in init super().init(locale, voice, audio_format, output) File "/opt/homebrew/lib/python3.9/site-packages/aspeak/api/api.py", line 43, in init self._config() File "/opt/homebrew/lib/python3.9/site-packages/aspeak/api/api.py", line 51, in _config assert token is not None AssertionError

cj-neo commented 1 year ago

我也遇到同樣的問題,直接發音可以,但是無法輸出到音樂檔

例如:

aspeak -t "你好,世界!" -l zh-CN -o test.wav

這樣就會出現同樣的錯誤了

kxxt commented 1 year ago

Sometimes it is just a result of poor internet connection. v3 still works for me.

I have just released v4, which is a rust-rewritten version of aspeak.