Translate
class Translate
TencentAI 翻译相关能力.
Traits
Translate
Audio
Constants
BASE_URL |
|
AILAB_TEXT |
|
TEXT |
|
IMAGE |
|
AUDIO |
|
DETECT |
|
Methods
array
aILabText(string $text, int $type = 0)
文本翻译(AI Lab).
array
text(string $text, string $source = 'auto', string $target = 'auto')
文本翻译(翻译君).
array
image(mixed $image, string $session_id, string $scene = 'word', string $source = 'auto', string $target = 'auto')
图片翻译.
array
audio(string $speech_chunk, string $session_id, int $format = 3, int $seq = 0, bool $end = true, string $source = 'auto', string $target = 'auto')
语音翻译.
array
detect(string $text, array $languages = null, bool $force = false)
语种识别.
Details
at line 43
array
aILabText(string $text, int $type = 0)
文本翻译(AI Lab).
at line 61
array
text(string $text, string $source = 'auto', string $target = 'auto')
文本翻译(翻译君).
at line 85
array
image(mixed $image, string $session_id, string $scene = 'word', string $source = 'auto', string $target = 'auto')
图片翻译.
at line 121
array
audio(string $speech_chunk, string $session_id, int $format = 3, int $seq = 0, bool $end = true, string $source = 'auto', string $target = 'auto')
语音翻译.
at line 154
array
detect(string $text, array $languages = null, bool $force = false)
语种识别.