Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
cbb8c19
Add audio-text-to-text task with datasets, demo, models, datsasets, s…
MrShahzebKhoso Aug 17, 2025
73cf5fe
Update about.md
MrShahzebKhoso Aug 17, 2025
bc4dfe7
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Aug 21, 2025
fd95ece
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Aug 25, 2025
b031fef
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Aug 25, 2025
ce51d87
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Aug 26, 2025
bf06eee
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Aug 27, 2025
0f6538e
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Aug 28, 2025
bd8733b
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 29, 2025
7930ccc
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 29, 2025
69a2b79
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 29, 2025
c91ccef
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 29, 2025
5dfde65
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Aug 30, 2025
c50a69c
Update about.md
MrShahzebKhoso Aug 31, 2025
5289f1b
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 31, 2025
9c4e6a4
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 31, 2025
e5438ec
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 31, 2025
4db1edc
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 31, 2025
e8f652e
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 31, 2025
b9f1c48
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 31, 2025
5fd050e
Update about.md
MrShahzebKhoso Aug 31, 2025
cdeaba0
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 31, 2025
a427dee
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Aug 31, 2025
01efcb6
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Aug 31, 2025
ce2fdef
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Sep 1, 2025
69b82f0
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Sep 1, 2025
8096da6
Update packages/tasks/src/tasks/audio-text-to-text/about.md
MrShahzebKhoso Sep 1, 2025
7cf7f65
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 1, 2025
ee2d130
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 1, 2025
944ce81
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 1, 2025
0b96556
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 2, 2025
0a21659
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 2, 2025
0087d9d
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 2, 2025
26e63a7
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 4, 2025
e108286
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 4, 2025
f633bfb
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 4, 2025
c6c878c
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 5, 2025
ccd32be
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 8, 2025
a9bb463
chore: lint fixes
MrShahzebKhoso Sep 9, 2025
b5dff6b
Merge branch 'main' into add-audio-text-to-text-task
MrShahzebKhoso Sep 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions packages/tasks/src/tasks/audio-text-to-text/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## Use Cases

### Audio question answering
Ask questions about an audio clip, and the model gives answers.
Example: “What did the teacher say about gravity in this lecture?”

### Music Analysis
Work with audio and prompts to analyze.
Example: “Make this melody sound more jazzy”

### Speech Understanding
Go beyond transcription to capture meaning, intent, and emotion.
Example: Understanding uncertainty in “I’m not sure I can finish this on time.”

### Meeting Minutes
Summarize meetings into action items.
Example: Audio: job interview → Prompt: “List strengths and weaknesses”


## Inference
You can use transformers library, and your audio file to any of the audio-text-to-text model, with insturctions and get text responses. Following code shows how to do so.

```python

import transformers
import numpy as np
import librosa

pipe = transformers.pipeline(model='fixie-ai/ultravox-v0_5-llama-3_2-1b', trust_remote_code=True)

path = "<path-to-input-audio>" # TODO: pass the audio here
audio, sr = librosa.load(path, sr=16000)


turns = [
{
"role": "system",
"content": "You are a friendly and helpful character. You love to answer questions for people."
},
]
pipe({'audio': audio, 'turns': turns, 'sampling_rate': sr}, max_new_tokens=30)


```
70 changes: 70 additions & 0 deletions packages/tasks/src/tasks/audio-text-to-text/data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import type { TaskDataCustom } from "../index.js";

const taskData: TaskDataCustom = {
datasets: [
{
description: "A dataset containing audio conversations with question–answer pairs.",
id: "nvidia/AF-Think",
},
{
description: "A more advanced and comprehensive dataset that contains characteristics of the audio as well",
id: "tsinghua-ee/QualiSpeech",
},
],
demo:
{
inputs: [
{
filename: "audio.wav",
type: "audio",
},
{
label: "Text Prompt",
content: "What is the gender of the speaker?",
type: "text",
},
],
outputs: [
{
label: "Generated Text",
content:
"The gender of the speaker is female.",
type: "text",
},
],
},
metrics: [],
models: [
{
description: "A lightweight model that has capabilities of taking both audio and text as inputs and generating responses.",
id: "fixie-ai/ultravox-v0_5-llama-3_2-1b",
},
{
description: "A multimodal model that supports voice chat and audio analysis.",
id: "Qwen/Qwen2-Audio-7B-Instruct",
},
{
description: "A model for audio understanding, speech translation, and transcription.",
id: "mistralai/Voxtral-Small-24B-2507",
},
{
description: "A new model capable of audio question answering and reasoning.",
id: "nvidia/audio-flamingo-3",
},
],
spaces: [
{
description: "A space that takes input as both audio and text and generates answers.",
id: "iamomtiwari/ATTT",
},
{
description: "A web application that demonstrates chatting with the Qwen2Audio Model.",
id: "freddyaboulton/talk-to-qwen-webrtc",
},
],
summary: "Audio-text-to-text models take both an audio clip and a text prompt as input, and generate natural language text as output. These models can answer questions about spoken content, summarize meetings, analyze music, or interpret speech beyond simple transcription. They are useful for applications that combine speech understanding with reasoning or conversation.",
widgetModels: [],
youtubeId: "",
};

export default taskData;