basePath: /v1 host: campusai.links123.net info: contact: email: slate@links123.com name: API Support description: Campus text to speech / speech to text. license: {} termsOfService: http://swagger.io/terms/ title: Campus AI API version: "1.0" paths: /en/audio_base_url: get: consumes: - application/json description: 获取音频接口base url(主要用于海内外接口地址分开) parameters: - description: IP地址, 默认无需传, 自动获取 in: query name: ip type: string produces: - application/json 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 summary: 获取音频接口base url tags: - 语料库 /en/stt: post: consumes: - application/json description: speech to Text parameters: - description: 发音文件 in: query name: file required: true type: file - description: 语言,en英文,zh中文,默认英文 in: path name: language type: string - description: 码率,8/16 默认16 in: path name: rate type: integer produces: - application/json responses: "200": description: test schema: type: string "400": description: '{"msg": "error info"}' schema: type: string "500": description: '{"msg": "error info"}' schema: type: string summary: 语音转文本 tags: - 语料库 /en/tts: get: consumes: - application/json description: Text to speech parameters: - description: 单词/短语/句子 in: query name: text type: string - description: en-US(美音)/en-GB(英音) enum: - en-US - en-GB in: query name: languageCode type: string - description: MALE(男音)/FEMALE(女音) enum: - MALE - FEMALE in: query name: gender type: string produces: - application/json 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 summary: 文本转语音 tags: - 语料库 swagger: "2.0"