Spaces:
Runtime error
Runtime error
TheComputerMan
commited on
Commit
•
f076af9
1
Parent(s):
6fd8e87
Update app.py
Browse files
app.py
CHANGED
@@ -14,14 +14,14 @@ subscription_region = "[AZURE_SPEECH_API_REGION]"
|
|
14 |
# Input SSML file
|
15 |
# Open this file to change or fine-tune the pitch, pronunciation, speaking rate, volume, voice, language and more
|
16 |
# https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/cognitive-services/Speech-Service/language-support.md#neural-voices
|
17 |
-
input_folder = "
|
18 |
input_file = "ssml.xml"
|
19 |
|
20 |
# https://docs.microsoft.com/nl-nl/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechsynthesisoutputformat?view=azure-python
|
21 |
audio_format = "Riff24Khz16BitMonoPcm"
|
22 |
|
23 |
# Output folder and file
|
24 |
-
output_folder = "
|
25 |
output_file = f"file-{random.randint(10000,99999)}.wav"
|
26 |
|
27 |
speech_config = SpeechConfig(subscription=subscription_key, region=subscription_region)
|
|
|
14 |
# Input SSML file
|
15 |
# Open this file to change or fine-tune the pitch, pronunciation, speaking rate, volume, voice, language and more
|
16 |
# https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/cognitive-services/Speech-Service/language-support.md#neural-voices
|
17 |
+
input_folder = "main"
|
18 |
input_file = "ssml.xml"
|
19 |
|
20 |
# https://docs.microsoft.com/nl-nl/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechsynthesisoutputformat?view=azure-python
|
21 |
audio_format = "Riff24Khz16BitMonoPcm"
|
22 |
|
23 |
# Output folder and file
|
24 |
+
output_folder = "main"
|
25 |
output_file = f"file-{random.randint(10000,99999)}.wav"
|
26 |
|
27 |
speech_config = SpeechConfig(subscription=subscription_key, region=subscription_region)
|