We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ec1da7 + 3a6375b commit 1d6cc98Copy full SHA for 1d6cc98
examples/speaker_text_to_speech.py
@@ -5,13 +5,13 @@
5
# passed in the request. When the service responds with the synthesized
6
# audio, the pyaudio would play it in a blocking mode
7
8
-from ibm_watson import SpeechToTextV1
+from ibm_watson import TextToSpeechV1
9
from ibm_watson.websocket import SynthesizeCallback
10
import pyaudio
11
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
12
13
authenticator = IAMAuthenticator('your_api_key')
14
-service = SpeechToTextV1(authenticator=authenticator)
+service = TextToSpeechV1(authenticator=authenticator)
15
service.set_service_url('https://stream.watsonplatform.net/speech-to-text/api')
16
17
class Play(object):
0 commit comments