Options
All
  • Public
  • Public/Protected
  • All
Menu
brief

声音元素

param

sound_elem_file_path: 读写(必填), 语音文件路径,需要开发者自己先保存语言然后指定路径

param

sound_elem_file_size: 读写(必填), 语言数据文件大小,以秒为单位

param

sound_elem_file_time: 读写(必填), 语音时长

param

sound_elem_file_id: 只读,下载声音文件时的ID

param

sound_elem_business_id: 只读,下载时用到的businessID

param

sound_elem_download_flag: 只读,是否需要申请下载地址(0:需要申请,1:到cos申请,2:不需要申请,直接拿url下载)

param

sound_elem_url: 只读,下载的URL

param

sound_elem_task_id: 只读,任务ID,废弃

note

注意:

语音是否已经播放,可使用 消息自定义字段 实现,如定义一个字段值0表示未播放,1表示播放,当用户单击播放后可设置改字段的值为1 一条消息只能添加一个声音元素,添加多个声音元素时,发送消息可能失败。

Hierarchy

  • SoundElem

Index

Properties

sound_elem_business_id

sound_elem_business_id: number

sound_elem_download_flag

sound_elem_download_flag: number

sound_elem_file_id

sound_elem_file_id: string

sound_elem_file_path

sound_elem_file_path: string

sound_elem_file_size

sound_elem_file_size: number

sound_elem_file_time

sound_elem_file_time: number

sound_elem_task_id

sound_elem_task_id: number

sound_elem_url

sound_elem_url: string

Generated using TypeDoc