Get long running google cloud speech api operation result later -
i using ruby api google cloud speech api. following code returns operation object.
project_id = "xxx" speech = google::cloud::speech.new project: project_id file_name = "test.flac" audio = speech.audio file_name, encoding: :flac, sample_rate: 44100,language: "en-us" operation = audio.process words: true
with operation.wait_until_done!
poll operation till finished. audio files 30 minutes long. block processes long time.
is possible result of operation later? know can call operation.id
unique identifier operation. possible use 1 later results of operation?
ran same problem. basically, can access operation via standard restapi call. seems strange way of doing it, works.
Comments
Post a Comment