目录

VoiceResult

Class Info

public class VoiceResult

文本转语音接口成功结果类。

Public Method Summary

Qualifier and Type

Method Name and Description

byte[]

getRet()

获取安卓可支持播报的pcm音频流。

String

getText()

获取音频流对应的语音文本。

String

getVoiceRequestId()

获取文本转语音请求的请求Id。

Public Methods

[h2]getRet

Method

public byte[] getRet()

您可以通过此API获取安卓可支持播报的pcm音频流。

Returns

Type

Description

byte[]

pcm音频流。

[h2]getText

Method

public String getText()

您可以通过此API获取音频流对应的语音文本。

Returns

Type

Description

String

音频流对应的语音文本。

[h2]getVoiceRequestId

Method

public String getVoiceRequestId()

您可以通过此API获取文本转语音请求的请求Id。

Returns

Type

Description

String

文本转语音请求的请求Id。