Skip to content

Commit

Permalink
feat(swagger): update swagger
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
mudler authored and github-actions[bot] committed Aug 24, 2024
1 parent ce82713 commit 29e0f92
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
44 changes: 44 additions & 0 deletions swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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": {
Expand Down
44 changes: 44 additions & 0 deletions swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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": {
Expand Down
28 changes: 28 additions & 0 deletions swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 29e0f92

Please sign in to comment.