Skip to content

Commit 3a6375b

Browse files
Import the correct class in speaker_text_to_speech example
1 parent 3ec1da7 commit 3a6375b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/speaker_text_to_speech.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
# passed in the request. When the service responds with the synthesized
66
# audio, the pyaudio would play it in a blocking mode
77

8-
from ibm_watson import SpeechToTextV1
8+
from ibm_watson import TextToSpeechV1
99
from ibm_watson.websocket import SynthesizeCallback
1010
import pyaudio
1111
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
1212

1313
authenticator = IAMAuthenticator('your_api_key')
14-
service = SpeechToTextV1(authenticator=authenticator)
14+
service = TextToSpeechV1(authenticator=authenticator)
1515
service.set_service_url('https://stream.watsonplatform.net/speech-to-text/api')
1616

1717
class Play(object):

0 commit comments

Comments
 (0)