API Key: AIzaSyBcNJ0za_jO7GNS...kxFI639fW0
Endpoint: https://speech.googleapis.com/v1/speech:recognize Language: en-US Audio: 1 second WAV sample Encoding: LINEAR16
HTTP Code: 400
Full Response:
{
"error": {
"code": 400,
"message": "sample_rate_hertz (16000) in RecognitionConfig must either be omitted or match the value in the WAV header (8000).",
"status": "INVALID_ARGUMENT"
}
}Error message: sample_rate_hertz (16000) in RecognitionConfig must either be omitted or match the value in the WAV header (8000).
This test sends a tiny audio sample to Google Speech API to verify it's working. The actual admin panel will send real audio from YouTube videos, which will work fine even if this test audio is invalid.
Key point: If you got HTTP 200 or HTTP 400 with 'audio.content' error, the API is enabled and working!