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

Is it possible to record and upload the transcriptions from _transcribe_streaming.py? #606

Closed
thetittenquetscher opened this issue Oct 21, 2016 · 3 comments
Labels

Comments

@thetittenquetscher
Copy link

When running python transcribe_streaming.py

the program freezes after I use the voice command “exit” . It keeps logging "Exiting..". Is this normal ?

screen shot 2016-10-21 at 19 33 50


When the 60 seconds streaming limit is reached, is there a way to restart the transcribe_streaming.py automatically again ?


Also can you record and upload the transcriptions from transcribe_streaming.py to Google Cloud Storage or to my local hard drive ?


Thank you for your attention.

@puneith puneith added the ML label Oct 21, 2016
@jerjou
Copy link
Contributor

jerjou commented Oct 21, 2016

  • Can you file a different issue for the "Exiting.." problem?
  • As for the other two of your questions, keep in mind that this repo is a repo of sample code. You should feel free to modify it to add the functionality you'd like - the existing code is there mainly for illustration and education. For example
    • You could potentially create a Timer object that communicates with the main thread to restart the operation after 60 seconds. Granted - there are some tricky issues to deal with here, so I've got it on my todo list to write a sample that does this (as I mentioned here)
    • Instead of just printing the response, you could open a file object and write the responses to that file. Or you could upload it to cloud storage, modifying the code snippet here to use upload_from_string, once the audio has ended.

@jerjou jerjou closed this as completed Oct 21, 2016
@thetittenquetscher
Copy link
Author

Thank you for your input @jerjou .

Lets say transcribe_streaming.py transcribes the spoken sentence “ I am dreaming about pears “ with 90.00 confidence. The word pear is listed in an array and triggers the transcribe_streaming.py to run another program which again starts a 10 seconds short video clip about falling pears from trees in slow motion. Could this be accomplished with the sample as well, when modified?

aww-board 34

@jerjou
Copy link
Contributor

jerjou commented Oct 24, 2016

Yup!

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

No branches or pull requests

3 participants