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

determineEncoding() private method

Attempts to determine the encoding based on the file format.
private determineEncoding ( string $fileFormat ) : string | null
$fileFormat string
return string | null
    private function determineEncoding($fileFormat)
    {
        switch ($fileFormat) {
            case 'flac':
                return 'FLAC';
            case 'amr':
                return 'AMR';
            case 'awb':
                return 'AMR_WB';
            default:
                return null;
        }
    }