Play Tone
This endpoint plays a tone (or multiple tones) in the radio.
Play Tone
Name
Value
interface Tone {
id: number;
color: string;
textColor: string;
label: string;
icon: string;
/**
* An audio file URL
*/
src?: string;
/**
* Optional local text-to-speech text.
* If provided without src, supported radio clients will generate and play the audio locally.
*/
tts?: string;
}
interface Request {
/** The community ID */
id: string;
/** The community API key */
key: string;
/** Which room (server id) to play tones for */
roomId: number;
/**
* Tones to play.
* You can provide either:
* - a saved tone ID from the community tone list
* - a full Tone object
*/
tones: Array;
/** where to play the tones */
playTo: {
type: "channel" | "group" | "game";
/**
if type === 'channel', the channel ID
if type === 'group', the group ID
if type === 'game', the speaker ID (in speakers.json)
*/
value: any;
}[];
}
Last updated
Was this helpful?

