你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
搜索问题、话题或人...
输入关键字进行搜索
搜索:
问题
精选文章
开源项目
视频教程
活动
· · ·
帮助
登录
注册
环信_Android
环信android 语音信息相关
是这样的 我们的PM希望增加一个这样的功能
就是语音信息只能60秒
当说话60秒的时候 自动发出
我用的是android 最新的 EaseUi 库集成的 现在已经可以检测到这个时间了
到60S的时候 应该调用什么方法 可以做出这个效果呢
如图
没有找到相关结果
已邀请:
与内容相关的链接
提交
1 个回复
zhangnan
// stop recording and send voice file
String st1 = getResources().getString(R.string.Recording_without_permission);
String st2 = getResources().getString(R.string.The_recording_time_is_too_short);
String st3 = getResources().getString(R.string.send_failure_please);
try {
int length = voiceRecorder.stopRecoding();
if (length > 0) {
sendVoice(voiceRecorder.getVoiceFilePath(), voiceRecorder.getVoiceFileName(toChatUsername),
Integer.toString(length), false);
要回复问题请先
登录
或
注册
发起人
我要偷偷伪装成一只大金毛
问题状态
最新活动:
2015-11-30 11:49
浏览:
7065
关注:
2
人
1 个回复
zhangnan
String st1 = getResources().getString(R.string.Recording_without_permission);
String st2 = getResources().getString(R.string.The_recording_time_is_too_short);
String st3 = getResources().getString(R.string.send_failure_please);
try {
int length = voiceRecorder.stopRecoding();
if (length > 0) {
sendVoice(voiceRecorder.getVoiceFilePath(), voiceRecorder.getVoiceFileName(toChatUsername),
Integer.toString(length), false);