Google\Cloud\Speech\SpeechClient::determineSampleRate PHP Method

determineSampleRate() private method

Attempts to determine the sample rate based on the encoding.
private determineSampleRate ( string $encoding ) : integer | null
$encoding string
return integer | null
    private function determineSampleRate($encoding)
    {
        switch ($encoding) {
            case 'AMR':
                return 8000;
            case 'AMR_WB':
                return 16000;
            default:
                return null;
        }
    }