Skip to content

Commit f2b524a

Browse files
committed
added accept argument to force wav file
1 parent 37a1d1a commit f2b524a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/text_to_speech_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
print(json.dumps(text_to_speech.voices(), indent=2))
1212

1313
with open(join(dirname(__file__), '../resources/output.wav'), 'wb') as audio_file:
14-
audio_file.write(text_to_speech.synthesize('Hello world!'))
14+
audio_file.write(text_to_speech.synthesize('Hello world!',accept='audio/wav',voice="en-US_AllisonVoice"))
1515

1616
print(json.dumps(text_to_speech.pronunciation('Watson', pronunciation_format='spr'), indent=2))
1717

0 commit comments

Comments
 (0)