Feedback Aide supports AI-powered transcription of speech into text through its transcription utility. The utility is available through a REST API utility endpoint. You send an audio file to the endpoint and get the transcript back in the response.
Use it to extract the words from a recording, for example to show a transcript beside a learner's recording or to feed the text into your own tools. This endpoint does not score the response.
Transcription capabilities
Supported features
- Transcribe spoken audio into plain text.
- Return the transcript in the
textfield of the response. - Store the transcript against the
transcript_uuidyou supply. Calling the endpoint again with the same UUID returns the stored transcript and does not charge credits again.
Supported audio formats
The endpoint accepts files with these MIME types:
| Format | MIME types |
|---|---|
| AAC |
audio/aac, audio/x-aac
|
| AIFF | audio/aiff |
| FLAC | audio/flac |
| M4A / MP4 audio |
audio/m4a, audio/mp4
|
| MP3 |
audio/mp3, audio/mpeg, audio/mpga
|
| Ogg / Opus |
audio/ogg, audio/opus
|
| WAV | audio/wav |
| WebM audio | audio/webm |
| Raw telephony and PCM |
audio/alaw, audio/mulaw, audio/l16
|
Known limitations
-
Audio only. Any other file type, including video, returns a
415response with the message "Only audio files are supported". Extract the audio track from a video before you upload it. - 25 MB upload limit. Larger files are rejected. Compress the recording or split it into parts.
- Silent audio. If the model finds no speech, the endpoint returns "Transcription model returned no text". You are not charged for that request.
Prerequisites
In addition to some developer skills, ensure you have:
- An OAuth key and secret to generate a security token - see Feedback Aide Security Tokens.
- Familiarity with how the Advanced - Feedback Aide RESTful Mode works.
- A
transcript_uuid. This is a UUID (version 4) that you generate for each recording. It identifies the transcript, so keep it if you may need to fetch the transcript again.
Generating a security token
Create a security token, using the client credentials grant at /api/token, that includes the following scopes:
api:feedbackaide transcript_uuid:<UUID4>
Replace
Example
api:feedbackaide transcript_uuid:9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
The same UUID must later be used in the transcription endpoint URL. The token only works for the UUID in its scope, so request a new token for each recording.
Uploading audio for transcription
Upload a supported audio file to the following endpoint:
POST /api/utility/generate-transcript/{transcript_uuid}Replace {transcript_uuid} with the UUID used in the security token scope.
Send the file as multipart form data in a field named file, with the token in the Authorization header:
curl -X POST \ -H "Authorization: Bearer <access_token>" \ -F "file=@recording.mp3;type=audio/mpeg" \ "https://<feedbackaide-host>/api/utility/generate-transcript/<transcript_uuid>"
Set the type to the file's real MIME type from the supported formats list.
Example flow
- Generate a UUID4 value for the recording.
- Include the UUID in the security token scope
transcript_uuid:<UUID>. - Upload the audio file to the endpoint with the token.
- Read the transcript from the
textfield of the200response.
To fetch the transcript again, send the same UUID with a new token for that UUID.
Credits
Transcription costs 1 credit for each minute of audio, counted per started minute.
A 61-second recording uses 2 credits. Feedback Aide measures the duration from the uploaded file.