2014-02-12 16 views
0

我已成功使用玻璃上可用的webview來顯示輸入。在後臺調用語音意圖

webview允許您平移和選擇鏈接。對於輸入字段,我的用戶將被阻止,無法繼續關注。

我有興趣使用GDK語音在webview中將文本轉換爲語音。

有沒有辦法在視圖或背景中調用語音識別意圖?

https://developers.google.com/glass/develop/gdk/input/voice#starting_the_speech_recognition_activity

private void displaySpeechRecognizer() { 
    Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); 
    startActivityForResult(intent, SPEECH_REQUEST); 
    } 
+2

還沒有,我在這裏問過類似的問題:http://stackoverflow.com/questions/21652321/how-to-navigate-a-google-glass-gdk-immersion-application-using-voice-command -onl。我在等待XE14希望添加它。在google的網站上有一個功能請求:https://code.google.com/p/google-glass-api/issues/detail?id=273 – Drace

回答

1

你正在尋找的功能是在GDK SpeechRecognizer支持。不幸的是,這還不被支持,但已經提交了feature request,您可以關注。