mediatechlab / tts-wrapper

TTS-Wrapper makes it easier to use text-to-speech APIs by providing a unified and easy-to-use interface.
MIT License
14 stars 9 forks source link

missing cred for Watson #22

Open willwade opened 1 year ago

willwade commented 1 year ago

Prerequisites

Description

        client = WatsonClient(credentials=('SOMEKEY',
                              'https://gateway-lon.watsonplatform.net/text-to-speech/api'))
        tts = WatsonTTS(client=WatsonClient())
        tts.synth('<speak>some text'</speak>', 'mysound.wav', format='wav')

This gives you TypeError: WatsonClient.__init__() missing 1 required positional argument: 'credentials'

But looking at the docs - I cant see I'm missing any credential ?

willwade commented 3 months ago

ive altered this in #25 - watson now has api_key, region, instance_id (good luck on finding your instance id! Watson have such confusing systems for their url/endpoints etc)