@wildix/wda-history-client > GetCallTranscriptionCommand
GetCallTranscriptionCommand class
Signature:
export declare class GetCallTranscriptionCommand extends GetCallTranscriptionCommand_base
Extends: GetCallTranscriptionCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WdaHistoryClient, GetCallTranscriptionCommand } from "@wildix/wda-history-client"; // ES Modules import
// const { WdaHistoryClient, GetCallTranscriptionCommand } = require("@wildix/wda-history-client"); // CommonJS import
const client = new WdaHistoryClient(config);
const input = { // GetCallTranscriptionInput
company: "STRING_VALUE",
callId: "STRING_VALUE", // required
flowIndex: Number("int"), // required
};
const command = new GetCallTranscriptionCommand(input);
const response = await client.send(command);
// { // GetCallTranscriptionOutput
// transcription: { // CallTranscriptionRecord
// id: "STRING_VALUE", // required
// pbx: "STRING_VALUE", // required
// time: Number("long"), // required
// company: "STRING_VALUE", // required
// licenses: [ // LicensesList // required
// "x-bees",
// ],
// type: "call" || "call_transcription" || "conference" || "conference_transcription", // required
// flowIndex: Number("int"), // required
// flowStartTime: Number("long"), // required
// callStartTime: Number("long"), // required
// chunks: [ // CallTranscriptionChunksList // required
// { // CallTranscriptionChunk
// id: "STRING_VALUE", // required
// time: Number("long"), // required
// speaker: "callee" || "caller", // required
// text: "STRING_VALUE", // required
// language: "STRING_VALUE",
// isFinal: true || false, // required
// start: Number("long"), // required
// end: Number("long"), // required
// sentiment: "STRING_VALUE", // required
// },
// ],
// },
// };