Voice
录音
提供玩家录音相关的操作函数列表
StartRecord
-
描述: 开始录音
-
范围: 客户端
-
警告: 上一次录音未结束前,再次调用该接口无效
参数列表:
| 参数 | 类型 | 说明 |
|---|---|---|
| Call | function(text:string) | 录音转文字时的回调;(text-语音转为成的文字) |
self.recordText = ""Voice:StartRecord(function(text) self.recordText = self.recordText..textend)EndRecord
-
描述: 停止录音
-
范围: 客户端
-
警告: 与 StartRecord 配合使用
Voice:EndRecord()