Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wit.wit.WitError: Wit responded with status: 400 (Bad Request) #1

Open
SanatMoharir opened this issue Oct 14, 2019 · 0 comments
Open

Comments

@SanatMoharir
Copy link

Hi, whenever I am trying to run the code the following error is appearing:
audio_johnnys_greeting.wav
Traceback (most recent call last):
File "pizzawit.py", line 95, in
resp = do_wit_natural_language_processing(audio_file)
File "pizzawit.py", line 43, in do_wit_natural_language_processing
resp = client.speech(f, None, {'Content-Type': 'audio/wav'})
File "/home/sanat/anaconda3/envs/tfg/lib/python3.6/site-packages/wit/wit.py", line 88, in speech
data=audio_file, headers=headers)
File "/home/sanat/anaconda3/envs/tfg/lib/python3.6/site-packages/wit/wit.py", line 41, in req
' (' + rsp.reason + ')')
wit.wit.WitError: Wit responded with status: 400 (Bad Request)

I have created the wav files using text to speech for both, bot and client. And successfully created the wit server token.

Can you please help me with this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant