Closed GTrela closed 6 years ago
While sending a message or audio using wit.ai python client every time a get response:
wit.wit.WitError: Wit responded with status: 400 (Bad Request)
I check the token, and it's corrent.
That's the code I use: resp = None with open('test.wav', 'rb') as f: resp = client.speech(f, None, {'Content-Type': 'audio/wav'}) print('Yay, got Wit.ai response: ' + str(resp))
resp = None with open('test.wav', 'rb') as f: resp = client.speech(f, None, {'Content-Type': 'audio/wav'}) print('Yay, got Wit.ai response: ' + str(resp))
Heyy @GTrela
Update: resolved in https://github.com/wit-ai/wit/issues/1158
While sending a message or audio using wit.ai python client every time a get response:
I check the token, and it's corrent.
That's the code I use:
resp = None with open('test.wav', 'rb') as f: resp = client.speech(f, None, {'Content-Type': 'audio/wav'}) print('Yay, got Wit.ai response: ' + str(resp))