\TencentAI\ModuleAudio

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
check()
checkAsrFormat()
checkAsrRate()
checkTranslateFormat()
encode()
$asrFormat
$asrRate
$aaiWxAsrsFormat
$translateFormat
N/A

Properties

$asrFormat

$asrFormat : 

Type

$asrRate

$asrRate : 

Type

$aaiWxAsrsFormat

$aaiWxAsrsFormat : 

Type

$translateFormat

$translateFormat : 

Type

Methods

check()

check(  $check, string  $array_name, integer  $code) 

抛出错误.

Parameters

$check
string $array_name
integer $code

Throws

\TencentAI\Error\TencentAIError

checkAsrFormat()

checkAsrFormat(  $format) 

检查格式参数.

Parameters

$format

Throws

\TencentAI\Error\TencentAIError

checkAsrRate()

checkAsrRate(integer  $rate) 

检查速率参数.

Parameters

integer $rate

Throws

\TencentAI\Error\TencentAIError

checkTranslateFormat()

checkTranslateFormat(  $format) 

检查语音翻译文件格式.

Parameters

$format

Throws

\TencentAI\Error\TencentAIError

encode()

encode(string  $voice) : string

编码文件.

传入本地路径或文件内容

Parameters

string $voice

Returns

string