I am trying to convert an audio file with the following attributes using Google Speech to Text API
1) Raw File 2) Sample Rate: 16000 3) Bit Rate: 16 4) Audio Type: mono
I am using the following Python Code to get the text file
service_request = service.speech().asyncrecognize(
body={
'config': {
'encoding': 'LINEAR16', # raw 16-bit signed LE samples
'sampleRate': 16000, # 16 khz
'languageCode': 'en-US', # a BCP-47 language tag
},
'audio': {
'uri':'gs://xxxxxxxxx/english.raw'
}
})
response = service_request.execute()
print(json.dumps(response))
This logic works well, but for some reason the transcription only returns one minute worth of recording and ignores the rest.
Why is this happening, can someone help me out?