You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Getting metadata/progress of a long-running recognition #819
while (!response.isDone()) {
System.out.println("Waiting for response...");
Thread.sleep(10000);
}
Describe the issue
API version in Gradle: 'com.google.cloud:google-cloud-speech:0.21.1-alpha'
Using some test audio about 14 seconds long, getting the metadata of the response doesn't return anything until the response is complete. Using response.peekMetadata() leads to returning 0% until the response is done. Using response.getMetadata() of course makes the later future.get() blocking, but the only time it returns is at the end with 100%.
Perhaps I'm using the code incorrectly, but otherwise would hope for some documentation or the feature to be available in the Java client library. Having progress output for very long audio (now up to 3 hours after the recent update) is almost necessary.
OK, I was able to reproduce what @jbrew138 is seeing:
Updates come in and the metadata in the long running operations do not get updated
When the processing completes, metadata jumps to 100% from 0%
According to the docs, this is actually the expected behavior, only the 100% progress indicator is guaranteed. That said, this looks like a feature that we should be implementing (intermediate updates to results in long running speech operations).
it would be very useful to have an indication of the progress.
i'm using REST to read progress . I realized that the progressPercent attribute is not present in the json if it has value 0 or if the file is small and therefore the progress goes immediately from 0 to 100 !!
I think it would be more correct that the progressPercent attribute was always present even if it has a value of 0.
Activity
jpaquinocivicom commentedon Nov 20, 2017
hi jbrew , are you able to solve this issue? i tried using 0.25.0-alpha version, but still not working, any work around?
lesv commentedon Dec 6, 2017
@gguuss / @nnegrey PTAL
gguuss commentedon Dec 19, 2017
OK, I was able to reproduce what @jbrew138 is seeing:
According to the docs, this is actually the expected behavior, only the 100% progress indicator is guaranteed. That said, this looks like a feature that we should be implementing (intermediate updates to results in long running speech operations).
bud4 commentedon Oct 16, 2018
it would be very useful to have an indication of the progress.
i'm using REST to read progress . I realized that the progressPercent attribute is not present in the json if it has value 0 or if the file is small and therefore the progress goes immediately from 0 to 100 !!
I think it would be more correct that the progressPercent attribute was always present even if it has a value of 0.
bud4 commentedon Oct 16, 2018
@gguuss in json jumps from 0 to 100 is true for small file. try it with very large files. look at my previous comment
kurtisvg commentedon Jun 10, 2019
Notice: this issue has been closed because it has been inactive for 192 days. You may reopen this issue if it has been closed in error.
chore(main): release 0.122.18 (#819)
chore(main): release 0.122.18 (#819)
chore(main): release 0.122.18 (#819)
sample: changes in three tests to resolve flaky tests and presubmit e…
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
chore(deps): update dependency com.google.cloud:google-cloud-aiplatfo…
samples: migrate code from googleapis/java-aiplatform (#7451)
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…