-
Notifications
You must be signed in to change notification settings - Fork 653
Closed
Closed
Copy link
Labels
api: speechIssues related to the Speech-to-Text API.Issues related to the Speech-to-Text API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.
Description
Though I couldn't find the usage of operation reference to get a transcript result.
I found something similar by base64-decoding operation.metadata.response.value..
The strange thing is I got some special characters after decoding the value.
Could you share the the right way to get a transcript from operation?
var operation = speechClient.operation('68850831366825');
operation.get({},function(err,res){
if (err){
console.log(err);
return;
}
var metadata = res.metadata;
var isDone = metadata.done;
if (isDone && metadata.response) {
var b64string = metadata.response.value;
var buf = new Buffer(b64string, 'base64');
var transcript = buf.toString('utf8');
.....
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: speechIssues related to the Speech-to-Text API.Issues related to the Speech-to-Text API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.
