Audio
class Audio
Tencent AI 语音识别能力.
Traits
Audio
Methods
array
asr(string $speech, int $format = 1, int $rate = 8000)
语音识别 echo 版:提供在线识别语音的能力,对整段音频进行识别,识别完成后,将返回语音的文字内容.
array
asrs(string $speech_chunk, string $speech_id, int $seq = 0, int $format = 1, int $rate = 16000, bool $end = true)
语音识别 流式版 AILab:提供流式识别语音的能力,可以轻松实现边录音边识别.
array
wxasrs(string $speech_chunk, string $speech_id, int $seq = 0, int $format = 1, int $rate = 16000, int $bits = 16, bool $cont_res = true, bool $end = true)
语音识别 流式版 WeChatAI:提供流式识别语音的能力,可以轻松实现边录音边识别.
array
wxasrlong(string|null $speech, string $callback_url, int $format = 3, string $speech_url = null)
长语音识别:上传长音频,提供回调接口,异步获取识别结果.
array
detectKeyword(string|null $speech, string $callback_url, array $key_words, int $format = 2, string $speech_url = null)
关键词检索 : 上传长音频,提供回调接口,异步获取识别结果.
array
tts(string $text, int $speaker = 1, int $format = 3, int $volume = 0, int $speed = 100, int $aht = 0, int $apc = 58)
语音合成 AILab:将文字转换为语音,返回文字的语音数据.
array
tta(string $text, int $model_type = 0, int $speed = -2)
语音合成 优图:将文字转换为语音,返回文字的语音数据.
array
aaievilaudio($speech_id, $speech_url)
音频鉴黄接口.
Details
at line 30
array
asr(string $speech, int $format = 1, int $rate = 8000)
语音识别 echo 版:提供在线识别语音的能力,对整段音频进行识别,识别完成后,将返回语音的文字内容.
at line 53
array
asrs(string $speech_chunk, string $speech_id, int $seq = 0, int $format = 1, int $rate = 16000, bool $end = true)
语音识别 流式版 AILab:提供流式识别语音的能力,可以轻松实现边录音边识别.
at line 85
array
wxasrs(string $speech_chunk, string $speech_id, int $seq = 0, int $format = 1, int $rate = 16000, int $bits = 16, bool $cont_res = true, bool $end = true)
语音识别 流式版 WeChatAI:提供流式识别语音的能力,可以轻松实现边录音边识别.
at line 119
array
wxasrlong(string|null $speech, string $callback_url, int $format = 3, string $speech_url = null)
长语音识别:上传长音频,提供回调接口,异步获取识别结果.
at line 139
array
detectKeyword(string|null $speech, string $callback_url, array $key_words, int $format = 2, string $speech_url = null)
关键词检索 : 上传长音频,提供回调接口,异步获取识别结果.
at line 169
array
tts(string $text, int $speaker = 1, int $format = 3, int $volume = 0, int $speed = 100, int $aht = 0, int $apc = 58)
语音合成 AILab:将文字转换为语音,返回文字的语音数据.
at line 191
array
tta(string $text, int $model_type = 0, int $speed = -2)
语音合成 优图:将文字转换为语音,返回文字的语音数据.
at line 208
array
aaievilaudio($speech_id, $speech_url)
音频鉴黄接口.
识别用户提供链接的音频,判断是否为色情音频。