Learn R Programming

googleLanguageR (version 0.2.0)

gl_speech_op: Get a speech operation

Description

For asynchronous calls of audio over 60 seconds, this returns the finished job

Usage

gl_speech_op(operation)

Arguments

operation

A speech operation object from gl_speech when asynch = TRUE

Value

If the operation is still running, another operation object. If done, the result as per gl_speech

See Also

gl_speech

Examples

Run this code
# NOT RUN {
# }
# 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)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab