From cdd1234ce505f0b34bde1ece29aa751c28923f61 Mon Sep 17 00:00:00 2001 From: chenchao Date: Wed, 16 Dec 2020 10:33:14 +0800 Subject: [PATCH] update readme add face verify support --- README.md | 2 +- voice/asr.go | 1 - voice/tts.go | 6 ++---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index de4f438..46ffbf6 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ - [x] 人脸对比 - [ ] 人脸查找 - [ ] 人脸库管理 -- [ ] 公安验证 +- [x] 公安身份验证 #### 图像审核 - [ ] 图像审核 diff --git a/voice/asr.go b/voice/asr.go index bf98a5a..b1a9525 100644 --- a/voice/asr.go +++ b/voice/asr.go @@ -5,7 +5,6 @@ import ( "errors" "io" "io/ioutil" - "net" "github.com/imroc/req" diff --git a/voice/tts.go b/voice/tts.go index 839603c..0ff22cd 100644 --- a/voice/tts.go +++ b/voice/tts.go @@ -3,20 +3,18 @@ package voice import ( + "encoding/json" "errors" - "io/ioutil" - "net" - "encoding/json" "github.com/imroc/req" ) const TTS_URL = "http://tsn.baidu.com/text2audio" var ( - ErrTextTooLong = errors.New("The input string is too long") + ErrTextTooLong = errors.New("the input string is too long") ) type TTSParams struct {