Public Member Functions | |
void | GetUrl (V2TIMValueCallback< V2TIMString > *callback) |
void | DownloadSound (const V2TIMString &path, V2TIMDownloadCallback *callback) |
void | ConvertVoiceToText (const V2TIMString &language, V2TIMValueCallback< V2TIMString > *callback) |
V2TIMSoundElem () | |
V2TIMSoundElem (const V2TIMSoundElem &) | |
V2TIMSoundElem & | operator= (const V2TIMSoundElem &) |
~V2TIMSoundElem () override | |
Data Fields | |
V2TIMString | path |
V2TIMString | uuid |
uint64_t | dataSize |
uint32_t | duration |
V2TIMElemType | elemType |
void * | obj_ptr |
V2TIMSoundElem | ( | ) |
V2TIMSoundElem | ( | const V2TIMSoundElem & | ) |
|
override |
void GetUrl | ( | V2TIMValueCallback< V2TIMString > * | callback | ) |
Get the voice download URL.
void DownloadSound | ( | const V2TIMString & | path, |
V2TIMDownloadCallback * | callback | ||
) |
Download audio. This API downloads data from the server. To cache or store the data, you can use the UUID as the key. The Chat SDK does not store the files.
path | The path to which the audio file is saved. It must be specified externally. |
void ConvertVoiceToText | ( | const V2TIMString & | language, |
V2TIMValueCallback< V2TIMString > * | callback | ||
) |
Convert the voice to text (supported only in 7.4 and later versions).
language | The language of the voice recognized. |
V2TIMSoundElem& operator= | ( | const V2TIMSoundElem & | ) |
V2TIMString path |
The path of the audio file to be sent (can only be called by the message sender)
V2TIMString uuid |
The internal ID of a voice message.
uint64_t dataSize |
The voice data size.
uint32_t duration |
The voice duration (seconds)
|
inherited |
element type
|
inherited |