Superinterface
Product
Pricing
Examples
Docs
Blog
GitHub
Discord
Book a demo
Sign in
Menu
Getting started
AI Provider Setup
FAQ
Assistants
Create assistant
Functions
Interfaces
Create interface
Interaction Modes
AI Builder
Publish interface
Components
Annotations
Concepts
Why Superinterface
How it works
Tasks
Overview
API reference
React
Installation
Components
Hooks
Assistants
Audio Runtimes
useTtsAudioRuntime
useWebrtcAudioRuntime
Audio Threads
Components
Files
Markdown
Messages
Threads
Contexts
Utils
Server
JavaScript
REST
useTtsAudioRuntime
Create a text-to-speech audio runtime.
import
{
useTtsAudioRuntime
}
from
'
@superinterface/react
'
const
{
ttsAudioRuntime
}
=
useTtsAudioRuntime
(
{
play
:
(
args
)
=
>
{
}
}
)
Arguments
Parameter
Type
Description
play
(args: PlayArgs) => void
Optional play handler
Returns
Prop
Type
Description
ttsAudioRuntime
AudioRuntime
TTS runtime
Status
Changelog
Terms of service
Privacy policy