Google\Cloud\Speech\SpeechClient::determineSampleRate PHP 메소드

determineSampleRate() 개인적인 메소드

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