Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When calling the speak_text_async function to synthesize text-to-speech, there is an extremely high probability of receiving a result with zero byte length. #842

Open
liujuncn opened this issue Jul 2, 2024 · 1 comment
Assignees
Labels
bug Something isn't working service side issue This is a service side issue, not in SDK text-to-speech

Comments

@liujuncn
Copy link

liujuncn commented Jul 2, 2024

What happened?

When calling the speak_text_async function to synthesize text-to-speech, there is an extremely high probability of receiving a result with zero byte length. This issue did not occur and the code executed perfectly fine just a month or two ago.

service_region = "eastus"
......
result = speech_synthesizer.speak_text_async(text).get()
stream = speechsdk.AudioDataStream(result)
stream.save_to_wav_file(f"/data/tts/{file_name}.ogg")

Since I couldn't locate the project repository for the Python SDK, and I suspect the issue lies with the service backend, I am reporting this bug here.

Similar issue and discussion:
#725
https://learn.microsoft.com/en-us/answers/questions/1186461/why-is-no-audio-data-returned-from-speech-sdk-spea

Version

1.36.0 (Latest)

What browser/platform are you seeing the problem on?

No response

Relevant log output

No response

@liujuncn liujuncn added the bug Something isn't working label Jul 2, 2024
@yulin-li
Copy link
Contributor

@LinZhang-Support could you help to triage?

@yulin-li yulin-li added text-to-speech service side issue This is a service side issue, not in SDK labels Jul 16, 2024
@glharper glharper assigned yulin-li and unassigned glharper Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working service side issue This is a service side issue, not in SDK text-to-speech
Projects
None yet
Development

No branches or pull requests

3 participants