// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag at // 2018-10-17 20:53:09.6090834 +0800 CST m=+0.097091800 package docs import ( "github.com/swaggo/swag" ) var doc = `{ "swagger": "2.0", "info": { "description": "Campus text to speech / speech to text.", "title": "Campus AI API", "termsOfService": "http://swagger.io/terms/", "contact": { "name": "API Support", "email": "slate@links123.com" }, "license": {}, "version": "1.0" }, "host": "campusai.links123.net", "basePath": "/v1", "paths": { "/en/audio_base_url": { "get": { "description": "获取音频接口base url(主要用于海内外接口地址分开)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "语料库" ], "summary": "获取音频接口base url", "parameters": [ { "type": "string", "description": "IP地址, 默认无需传, 自动获取", "name": "ip", "in": "query" } ], "responses": { "200": { "description": "{\"audio_base_url\": \"https://campusai.links123.com/v1/en/tts\",\"country_code\": \"国家code\",\"ip\": \"ip地址\"}", "schema": { "type": "string" } }, "400": { "description": "{\"msg\": \"error info\"}", "schema": { "type": "string" } }, "500": { "description": "{\"msg\": \"error info\"}", "schema": { "type": "string" } } } } }, "/en/stt": { "post": { "description": "speech to Text", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "语料库" ], "summary": "语音转文本", "parameters": [ { "type": "file", "description": "发音文件", "name": "file", "in": "query", "required": true }, { "type": "string", "description": "语言,en英文,zh中文,默认英文", "name": "language", "in": "path" }, { "type": "integer", "description": "码率,8/16 默认16", "name": "rate", "in": "path" } ], "responses": { "200": { "description": "test", "schema": { "type": "string" } }, "400": { "description": "{\"msg\": \"error info\"}", "schema": { "type": "string" } }, "500": { "description": "{\"msg\": \"error info\"}", "schema": { "type": "string" } } } } }, "/en/tts": { "get": { "description": "Text to speech", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "语料库" ], "summary": "文本转语音", "parameters": [ { "type": "string", "description": "单词/短语/句子", "name": "text", "in": "query" }, { "enum": [ "en-US", "en-GB" ], "type": "string", "description": "en-US(美音)/en-GB(英音)", "name": "languageCode", "in": "query" }, { "enum": [ "MALE", "FEMALE" ], "type": "string", "description": "MALE(男音)/FEMALE(女音)", "name": "gender", "in": "query" } ], "responses": { "302": { "description": "https://lnks123-campus-tts-hk.oss-cn-hongkong.aliyuncs.com/xxxx.mp3", "schema": { "type": "string" } }, "400": { "description": "{\"msg\": \"error info\"}", "schema": { "type": "string" } }, "500": { "description": "{\"msg\": \"error info\"}", "schema": { "type": "string" } } } } } } }` type s struct{} func (s *s) ReadDoc() string { return doc } func init() { swag.Register(swag.Name, &s{}) }