Skip to content

Commit a08cc94

Browse files
committed
fix(genapis): fix dates
1 parent 037820a commit a08cc94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/generative-apis/how-to/query-audio-models.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: How to query audio models
33
description: Learn how to interact with powerful audio models using Scaleway's Generative APIs service.
44
tags: generative-apis ai-data audio-models voxtral audio-model
55
dates:
6-
validation: 2025-08-22
7-
posted: 2024-08-28
6+
validation: 2025-09-22
7+
posted: 2025-09-22
88
---
99
import Requirements from '@macros/iam/requirements.mdx'
1010
import ChatCompVsResponsesApi from '@macros/ai/chat-comp-vs-responses-api.mdx'
@@ -73,7 +73,7 @@ client = OpenAI(
7373

7474
You can now generate a text transcription of a given audio file using the Chat Completions API. This audio file can be local or remote.
7575

76-
### Transcribing a local audio file
76+
#### Transcribing a local audio file
7777

7878
In the example below, a local audio file called `scaleway-ai-revolution.mp3` is base-64 encoded and sent to the model, alongside a transcription prompt. The resulting text transcription is printed to the screen.
7979

@@ -119,7 +119,7 @@ print(response.choices[0].message.content)
119119

120120
Various parameters such as `temperature` and `max_tokens` control the output. See the [dedicated API documentation](https://www.scaleway.com/en/developers/api/generative-apis/#path-chat-completions-create-a-chat-completion) for a full list of all available parameters.
121121

122-
### Transcribing a remote audio file
122+
#### Transcribing a remote audio file
123123

124124
In the example below, an audio file from a remote URL (`https://genapi-documentation-assets.s3.fr-par.scw.cloud/scaleway-ai-revolution.mp3`) is downloaded using the `requests` library, base64-encoded, and then sent to the model in a chat completion request alongside a transcription prompt. The resulting text transcription is printed to the screen.
125125

0 commit comments

Comments
 (0)