第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

Google Speech to Text api 客戶端無(wú)一例外返回但無(wú)實(shí)際結(jié)果

Google Speech to Text api 客戶端無(wú)一例外返回但無(wú)實(shí)際結(jié)果

PHP
拉風(fēng)的咖菲貓 2021-06-30 09:10:26
我正在使用來(lái)自 googles 站點(diǎn)的示例代碼,這不會(huì)引發(fā)異常但不返回任何結(jié)果。如果我使用 API 資源管理器,相同的數(shù)據(jù)就可以正常工作。我嘗試了不同的文件(全部來(lái)自谷歌示例代碼)不同的設(shè)置。所有這些都給了我相同的結(jié)果,沒(méi)有。function transcribe_sync($content){    // set string as audio content    $audio = (new RecognitionAudio())        ->setContent($content);    // set config    $encoding = AudioEncoding::LINEAR16;    $sampleRateHertz = 32000;    $languageCode = 'en-US';    $config = (new RecognitionConfig())        ->setEncoding($encoding)        ->setSampleRateHertz($sampleRateHertz)        ->setAudioChannelCount(1)        ->setMaxAlternatives(1)        ->setLanguageCode($languageCode);    // create the speech client    $client = new SpeechClient();    try {        $response = $client->recognize($config, $audio);        echo $response->getResults()    }    catch (\Exception $e) {        $this->handleError('Error determining recognition. ' . $e->getMessage());    }    finally {        $client->close();    }
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 318 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)