Greetings. I'm trying to use the Media Translation API following the explanation of:
https://www.youtube.com/watch?v=RyVWUMAMIDk and
https://github.com/googleapis/python-media-translation
But when executing the code to do file translations or real time translations with the microphone I'm not getting the expected results, I think I'm missing something to do but I'm not sure what, I'm new to this topic. Please if someone could give me some help I would appreciate it.
I have written a brief step by step of what I have done so far up to the point where I'm getting the error. You can find it in this google docs file: https://docs.google.com/document/d/1f2tocD0odHHxsiVqIVHfr6274oi5FU2Vqjd5OUNPn8o/edit?usp=sharing
Any advice would be helpful.
Thank you very much in advance.
It's difficult to determine what's causing the error without more information. Can you provide the error messages you're receiving in text here?
Hi Joevanie, thanks for replying, these are some images of the error I get when I run the translate_from_mic.py file, I honestly don't understand them.
If you can't see the images clearly here please go to the document I made, there you can see them more clearly. Thank you.
https://docs.google.com/document/d/1f2tocD0odHHxsiVqIVHfr6274oi5FU2Vqjd5OUNPn8o/edit?usp=sharing
you forgot to call the function after defining
call function
result
Great! That worked for me, a rookie mistake. Thank you very much, I was able to run the translate_from_file.py and it translated the audio.raw file correctly. After that I tried to do the same with a new file I uploaded called audio.mp3 which is located in the same path as audio.raw but it didn't work well, is it not possible to do translations with .mp3 files? Or is the error due to something else? This is what I got: