public override int SetMode(GCloudVoiceMode nMode) { Debug.Log("GCloudVoice_C# API: _SetMode"); if (!bInit) { return((int)GCloudVoiceErr.GCLOUD_VOICE_NEED_INIT); } return(GCloudVoice_SetMode((int)nMode)); }
public void SetModel(GCloudVoiceMode model, bool bforce = false) { if (m_voiceengine != null && (m_GCloudVoiceMode != model || bforce)) { int ret = m_voiceengine.SetMode(model); Debug.LogError("GVoiceManger -- SetMode " + model + " ret :" + ret); if (ret == 0) { m_GCloudVoiceMode = model; } } }
/// <summary> /// Set the mode for engine. /// </summary> /// <param name="mode">mode to set /// RealTime: realtime mode for TeamRoom or NationalRoom /// Messages: voice message mode /// Translation: speach to text mode</param> /// <returns>if success return GCLOUD_VOICE_SUCC, failed return other errno @see GCloudVoiceErrno</returns> public abstract int SetMode(GCloudVoiceMode mode);