wjbeeson / StoryAnimator

0 stars 0 forks source link

timestamp: google cloud speech recognition code needs to be rewritten to support audio clips longer than 1 min #16

Open fjb595 opened 9 months ago

fjb595 commented 9 months ago

hit this error during testing:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Sync input too long. For audio longer than 1 min use LongRunningRecognize with a 'uri' parameter." debug_error_string = "UNKNOWN:Error received from peer ipv4:142.251.33.74:443 {grpc_message:"Sync input too long. For audio longer than 1 min use LongRunningRecognize with a \'uri\' parameter.", grpc_status:3, created_time:"2023-12-04T13:10:53.9215528+00:00"}"

possibles fixes:

fjb595 commented 9 months ago

seems like speechmatic is cheaper than google cloud unless the 'dynamic batch' processing mode is used, which is not what is currently implemented. $.005/min vs $.003/min