Skip to content

Commit 4c6544f

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#184)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 99eaf84 commit 4c6544f

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/libs/Ultravox/Generated/Ultravox.IVoicesClient.VoicesCreate.g.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ public partial interface IVoicesClient
1313
/// <remarks>
1414
/// curl --request POST \<br/>
1515
/// --url https://api.ultravox.ai/api/voices \<br/>
16-
/// --header 'Content-Type: application/json' \<br/>
16+
/// --header 'Content-Type: multipart/form-data' \<br/>
1717
/// --header 'X-API-Key: &lt;your-api-key&gt;' \<br/>
18-
/// -d '{"name": "My Custom Voice", "description": "Example ElevenLabs voice", "definition": {"elevenLabs": {"voiceId": "21m00Tcm4TlvDq8ikWAM", "model": "eleven_turbo_v2_5"}} }'
18+
/// --form 'file=@/path/to/voice.mp3' \<br/>
19+
/// --form 'name=My Custom Voice' \<br/>
20+
/// --form 'description=Voice recorded on Jan 1, 2024'
1921
/// </remarks>
2022
global::System.Threading.Tasks.Task<global::Ultravox.Voice> VoicesCreateAsync(
2123

src/libs/Ultravox/Generated/Ultravox..JsonSerializerContext.g.cs renamed to src/libs/Ultravox/Generated/Ultravox.JsonSerializerContext.g.cs

File renamed without changes.

src/libs/Ultravox/Generated/Ultravox.Realtime..JsonSerializerContext.g.cs renamed to src/libs/Ultravox/Generated/Ultravox.Realtime.JsonSerializerContext.g.cs

File renamed without changes.

src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesCreate.g.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ partial void ProcessVoicesCreateResponseContent(
3030
/// <remarks>
3131
/// curl --request POST \<br/>
3232
/// --url https://api.ultravox.ai/api/voices \<br/>
33-
/// --header 'Content-Type: application/json' \<br/>
33+
/// --header 'Content-Type: multipart/form-data' \<br/>
3434
/// --header 'X-API-Key: &lt;your-api-key&gt;' \<br/>
35-
/// -d '{"name": "My Custom Voice", "description": "Example ElevenLabs voice", "definition": {"elevenLabs": {"voiceId": "21m00Tcm4TlvDq8ikWAM", "model": "eleven_turbo_v2_5"}} }'
35+
/// --form 'file=@/path/to/voice.mp3' \<br/>
36+
/// --form 'name=My Custom Voice' \<br/>
37+
/// --form 'description=Voice recorded on Jan 1, 2024'
3638
/// </remarks>
3739
public async global::System.Threading.Tasks.Task<global::Ultravox.Voice> VoicesCreateAsync(
3840

0 commit comments

Comments
 (0)