@wildix/wim-voicebots-client > SendSayCommand
SendSayCommand class
Generates and plays the specified text through the audio stream of the voice session.
Signature:
export declare class SendSayCommand extends SendSayCommand_base
Extends: SendSayCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { VoiceBotsClient, SendSayCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
// const { VoiceBotsClient, SendSayCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
const client = new VoiceBotsClient(config);
const input = { // SendSayInput
text: "STRING_VALUE", // required
replyId: "STRING_VALUE", // required
interruptible: true || false,
sessionId: "STRING_VALUE", // required
};
const command = new SendSayCommand(input);
const response = await client.send(command);
// {};