diff --git a/swagger/docs.go b/swagger/docs.go index 44ae10ad..ced239c4 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -656,6 +656,30 @@ const docTemplate = `{ } } }, + "/v1/sound-generation": { + "post": { + "summary": "Generates audio from the input text.", + "parameters": [ + { + "description": "query params", + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/schema.ElevenLabsSoundGenerationRequest" + } + } + ], + "responses": { + "200": { + "description": "Response", + "schema": { + "type": "string" + } + } + } + } + }, "/v1/text-to-speech/{voice-id}": { "post": { "summary": "Generates audio from the input text.", @@ -1161,6 +1185,26 @@ const docTemplate = `{ } } }, + "schema.ElevenLabsSoundGenerationRequest": { + "type": "object", + "properties": { + "do_sample": { + "type": "boolean" + }, + "duration_seconds": { + "type": "number" + }, + "model_id": { + "type": "string" + }, + "prompt_influence": { + "type": "number" + }, + "text": { + "type": "string" + } + } + }, "schema.File": { "type": "object", "properties": { diff --git a/swagger/swagger.json b/swagger/swagger.json index 6edfebbd..c538b539 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -649,6 +649,30 @@ } } }, + "/v1/sound-generation": { + "post": { + "summary": "Generates audio from the input text.", + "parameters": [ + { + "description": "query params", + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/schema.ElevenLabsSoundGenerationRequest" + } + } + ], + "responses": { + "200": { + "description": "Response", + "schema": { + "type": "string" + } + } + } + } + }, "/v1/text-to-speech/{voice-id}": { "post": { "summary": "Generates audio from the input text.", @@ -1154,6 +1178,26 @@ } } }, + "schema.ElevenLabsSoundGenerationRequest": { + "type": "object", + "properties": { + "do_sample": { + "type": "boolean" + }, + "duration_seconds": { + "type": "number" + }, + "model_id": { + "type": "string" + }, + "prompt_influence": { + "type": "number" + }, + "text": { + "type": "string" + } + } + }, "schema.File": { "type": "object", "properties": { diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index c953b0af..389543fa 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -322,6 +322,19 @@ definitions: object: type: string type: object + schema.ElevenLabsSoundGenerationRequest: + properties: + do_sample: + type: boolean + duration_seconds: + type: number + model_id: + type: string + prompt_influence: + type: number + text: + type: string + type: object schema.File: properties: bytes: @@ -1066,6 +1079,21 @@ paths: schema: $ref: '#/definitions/schema.JINARerankResponse' summary: Reranks a list of phrases by relevance to a given text query. + /v1/sound-generation: + post: + parameters: + - description: query params + in: body + name: request + required: true + schema: + $ref: '#/definitions/schema.ElevenLabsSoundGenerationRequest' + responses: + "200": + description: Response + schema: + type: string + summary: Generates audio from the input text. /v1/text-to-speech/{voice-id}: post: parameters: