import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const speechToText = await client.legacy.reporting.batchDetailRecords.speechToText.create({
end_date: '2020-07-01T00:00:00-06:00',
start_date: '2020-07-01T00:00:00-06:00',
});
console.log(speechToText.data);{
"data": {
"id": "ab76c3b6-80cd-11eb-9439-0242ac130002",
"created_at": "2020-07-01T00:00:00-06:00",
"start_date": "2020-07-01T00:00:00-06:00",
"end_date": "2020-07-01T00:00:00-06:00",
"download_link": "https://portal-cdrs-usage.s3.amazonaws.com",
"status": "PENDING",
"record_type": "speech_to_text_report"
}
}Creates a new Speech to Text batch report request with the specified filters
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const speechToText = await client.legacy.reporting.batchDetailRecords.speechToText.create({
end_date: '2020-07-01T00:00:00-06:00',
start_date: '2020-07-01T00:00:00-06:00',
});
console.log(speechToText.data);{
"data": {
"id": "ab76c3b6-80cd-11eb-9439-0242ac130002",
"created_at": "2020-07-01T00:00:00-06:00",
"start_date": "2020-07-01T00:00:00-06:00",
"end_date": "2020-07-01T00:00:00-06:00",
"download_link": "https://portal-cdrs-usage.s3.amazonaws.com",
"status": "PENDING",
"record_type": "speech_to_text_report"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Speech to Text batch report request data
Request object for Speech to Text detailed report
Speech to text batch report request created successfully
Show child attributes
Identifies the resource
"ab76c3b6-80cd-11eb-9439-0242ac130002"
"2020-07-01T00:00:00-06:00"
"2020-07-01T00:00:00-06:00"
"2020-07-01T00:00:00-06:00"
URL to download the report
"https://portal-cdrs-usage.s3.amazonaws.com"
PENDING, COMPLETE, FAILED, EXPIRED "speech_to_text_report"
Was this page helpful?