Skip to content

missing cred for Watson #22

@willwade

Description

@willwade

Prerequisites

  • Can you reproduce the problem?
  • Are you running the latest version?
  • Did you check the documentation?
  • Did you perform a cursory search?

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions