View source: R/speech-to-text.R
gl_speech_op | R Documentation |
For asynchronous calls of audio over 60 seconds, this returns the finished job
gl_speech_op(operation = .Last.value)
operation |
A speech operation object from gl_speech when |
If the operation is still running, another operation object. If done, the result as per gl_speech
gl_speech
## Not run:
test_audio <- system.file("woman1_wb.wav", package = "googleLanguageR")
## make an asynchronous API request (mandatory for sound files over 60 seconds)
asynch <- gl_speech(test_audio, asynch = TRUE)
## Send to gl_speech_op() for status or finished result
gl_speech_op(asynch)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.