Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
新增语音关键词搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
justmd5 committed Jul 15, 2018
1 parent 0f0a08d commit bfb2d48
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions src/Core/FilterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,23 @@ trait FilterTrait
{
protected $filterArray = [
'aai' => [
'asr' => [],
'asrs' => [],
'wxasrs' => [],
'wxasrlong' => [],
'tts' => [],
'tta' => [],
'asr' => [
'format' => 'require|integer|in:1,2,3,4',
'speech' => 'require|string|max:8192',
'rate' => 'require|integer|in:8000,16000',
],
'asrs' => [],
'wxasrs' => [],
'wxasrlong' => [],
'tts' => [],
'tta' => [],
'detectkeyword' => [ //关键词检索
'callback_url' => 'require|url',
'speech' => 'required_without:speech_url',
'speech_url' => 'required_without:speech',
'key_words' => 'required',
'format' => 'require|integer|in:1',
],
],
'face' => [
'detectface' => [],
Expand Down

0 comments on commit bfb2d48

Please sign in to comment.