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

Voice elements

param sound_elem_file_path

sound_elem_file_path: Read/Write (required). Path of the voice file. The developer must first store the voice file and then specify the path.

param sound_elem_file_size

sound_elem_file_size: Read/Write (required). Size of the voice message data file, in seconds.

param sound_elem_file_time

sound_elem_file_time: Read/Write (required). Voice duration.

param sound_elem_file_id

sound_elem_file_id: Read-only. ID of the downloaded voice message file.

param sound_elem_business_id

sound_elem_business_id: Read-only. businessID used during download.

param sound_elem_download_flag

sound_elem_download_flag: Read-only. Whether it is necessary to apply for a download URL. 0: yes; 1: apply from COS; 2: directly use the URL for download.

param sound_elem_url

sound_elem_url: Read-only. Download URL.

param sound_elem_task_id

sound_elem_task_id: Read-only. Task ID. Disused.

note

Note:

You can use a message custom field to specify whether a voice message is played. For example, you can set the valid values of the field to 0 (played) and 1 (not played) and configure the field value to change to 1 when a user taps Play. Only one voice element can be added to a message. When multiple voice elements are added to a message, sending the message may fail.

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