詢問 face animation ID 及語速調整

  1. 想請問 playFaceAnimation(int id) 這裡的animation id可以在哪裡找到呢?希望可以改變凱比的表情。
  2. 我嘗試用setSpekParameter()去調整語速,但是用了之後反而凱比說話都不會有聲音了,不知道是不是我使用上有錯誤,我的程式碼如下:

mRobotAPI.setSpeakParameter(VoiceEventListener.SpeakType.NORMAL, "isForced", "true");
mRobotAPI.setSpeakParameter(VoiceEventListener.SpeakType.NORMAL, "speed", "50");
mRobotAPI.setSpeakParameter(VoiceEventListener.SpeakType.NORMAL, "pitch", "80");

謝謝您!

@musicsusanshen
針對第一個問題 playFaceAnimation(int id)
目前此API是我們開發中先定義出來的Interface,尚未實現,目前凱比臉僅能控制嘴巴與show/hide唷
https://developer-docs.nuwarobotics.com/sdk/javadoc/reference/com/nuwarobotics/service/facecontrol/UnityFaceManager.html

針對問題二,
是否有相關log可以參考?
另外提醒一下,此API僅適用於下一次的startTTS
請在每次下startTTS前設定這個參數

mRobot.setSpeakParameter(VoiceEventListener.SpeakType.NORMAL, "pitch", "100"); //the parameters is 50~200
mRobot.setSpeakParameter(VoiceEventListener.SpeakType.NORMAL, "speed", "100"); //the parameters is 50~200
mRobot.setSpeakParameter(VoiceEventListener.SpeakType.NORMAL, "isForced", "true"); //MUST set as true
mRobot.startTTS("說話字串");

Log in to reply

Looks like your connection to NUWA robotics developer forum was lost, please wait while we try to reconnect.