@wildix/wim-voicebots-client > SendStopCommand
SendStopCommand class
Stop playing and ongoing audio from the voice bot.
Signature:
export declare class SendStopCommand extends SendStopCommand_base
Extends: SendStopCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { VoiceBotsClient, SendStopCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
// const { VoiceBotsClient, SendStopCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
const client = new VoiceBotsClient(config);
const input = { // SendStopInput
sessionId: "STRING_VALUE", // required
};
const command = new SendStopCommand(input);
const response = await client.send(command);
// {};