arabic text to speech is crunched
text to speech in Arabic works fine for 3 lines then gets crunched.
Azure AI Speech
-
dupammi 8,460 Reputation points • Microsoft Vendor
2023-11-06T10:03:07.9366667+00:00 Hi @Salah Chebaro ,
Thank you for reaching out to Microsoft Q&A, regarding your issue with text-to-speech in Arabic on Microsoft Azure Cloud.
To better understand the issue, could you please provide more details about the specific service, region you were using and the code (SDK language) you are running? Additionally, have you checked the Azure documentation for any known issues or troubleshooting steps?
In the meantime, here are some general troubleshooting steps you can try:
- Check if the input text is formatted correctly and does not contain any special characters or unsupported symbols.
- Verify that the service is configured correctly and that the correct language and voice are selected.
- Check if there are any limitations or restrictions on the service that may be causing the issue.
Please let me know if these steps help resolve the issue.
Thank you!
-
Salah Chebaro 0 Reputation points
2023-11-06T13:08:34.91+00:00 we are trying to make a test here https://azure.microsoft.com/en-us/products/ai-services/text-to-speech
but at the third line the words start to sound crunched. The test we are trying to do is Arabic text.
-
dupammi 8,460 Reputation points • Microsoft Vendor
2023-11-07T06:32:01.6933333+00:00 Hi @Salah Chebaro ,
Thank you for your response.
There could be several reasons why you are experiencing disturbances or crunching of words in the Azure Free text-to-speech service.
Here are some possible solutions that I can think of:
- Input Text Formatting: Ensure that the input text is formatted correctly and does not contain any special characters or unsupported symbols. The text should be in plain text format and should not contain any formatting tags or markup.
- Service Configuration: Verify that the service is configured correctly and that the correct language and voice are selected. You can check the supported Arabic dialects, voices, and audio formats for text-to-speech on Azure in the official documentation: Language support - Speech service - Azure AI services | Microsoft Learn
- Audio Quality Settings: Check the audio quality settings for the service. The default audio quality setting for the Free tier is "Low", which may result in lower quality audio output. You can try changing the audio quality setting to "High" or "Medium" to see if it improves the audio quality.
- Network Connectivity: Ensure that you have a stable and reliable network connection. Poor network connectivity can cause disruptions or delays in the audio output.
Please try above suggestions and hopefully it should be resolved.
Thank You!
-
dupammi 8,460 Reputation points • Microsoft Vendor
2023-11-08T12:28:34.7766667+00:00 Hi @Salah Chebaro ,
We haven’t heard from you on the last response and was just checking back to see if you have checked my response above.
Thanks!
-
Salah Chebaro 0 Reputation points
2023-11-10T04:52:25.6866667+00:00 Still it’s not working, I can send you sample to check
-
Salah Chebaro 0 Reputation points
2023-11-10T04:54:04.8433333+00:00 Still not working, although it works for english language
-
Salah Chebaro 0 Reputation points
2023-11-10T04:56:46.4966667+00:00 Still not working, although it’s working in English
-
Salah Chebaro 0 Reputation points
2023-11-15T07:55:55.4433333+00:00 Hello still i didn't receive any answer..
-
santoshkc 7,845 Reputation points • Microsoft Vendor
2023-11-16T10:12:36.01+00:00 Hi @Salah Chebaro ,
Sorry for the delay in response.
I tried using the Azure Speech studio and also with the below code in my local. Speech synthesized with the given Arabic text.
import azure.cognitiveservices.speech as speechsdk # This example requires environment variables named "SPEECH_KEY" and "SPEECH_REGION" speech_config = speechsdk.SpeechConfig(subscription='SPEECH_KEY', region='SPEECH_REGION') audio_config = speechsdk.audio.AudioOutputConfig(use_default_speaker=True) # The language of the voice that speaks. speech_config.speech_synthesis_voice_name='ar-AE-FatimaNeural' speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=audio_config) # Get text from the console and synthesize to the default speaker. print("Enter the text here below and press Enter") text = input() speech_synthesis_result = speech_synthesizer.speak_text_async(text).get() if speech_synthesis_result.reason == speechsdk.ResultReason.SynthesizingAudioCompleted: print("Speech synthesized for text [{}]".format(text)) elif speech_synthesis_result.reason == speechsdk.ResultReason.Canceled: cancellation_details = speech_synthesis_result.cancellation_details print("Speech synthesis canceled: {}".format(cancellation_details.reason)) if cancellation_details.reason == speechsdk.CancellationReason.Error: if cancellation_details.error_details: print("Error details: {}".format(cancellation_details.error_details)) print("Did you set the speech resource key and region values?")
For more info: Text to speech overview - Speech service - Azure AI services | Microsoft Learn
Text to speech quickstart - Speech service - Azure AI services | Microsoft Learn
I hope it will work. If you still facing the issue, I request you to raise a support case through Azure portal.
Thank you!
Sign in to comment