123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- {
- "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"
- }
- }
- }
- }
- }
- }
- }
|