
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@bandwidth/voice
Advanced tools
OS | Node |
---|---|
Windows 2016 | 12, 14, 16 |
Windows 2019 | 12, 14, 16 |
Ubuntu 20.04 | 12, 14, 16 |
Ubuntu 22.04 | 12, 14, 16 |
Note: As of version 2.0.0, this package has been upgraded to TypeScript
npm install @bandwidth/voice
import { CreateCallRequest, ApiError, ApiController, Client, Response, SpeakSentence } from '@bandwidth/voice';
const client = new Client({
basicAuthUserName: "username",
basicAuthPassword: "password"
});
const controller = new ApiController(client);
const accountId = "12345";
To use a custom environment
import { ApiController, Client, Environment } from '@bandwidth/voice';
const client = new Client({
basicAuthUserName: "username",
basicAuthPassword: "password",
environment: Environment.Custom,
baseUrl: 'https://custom.bandwidth.com'
});
const controller = new ApiController(client);
const accountId = "12345";
var from = "+15554443333";
var to = "+15553334444";
var answerUrl = "https://sample.com";
var applicationId = "3-a-b-c";
var body = {
from: from,
to: to,
answerUrl: answerUrl,
applicationId: applicationId,
};
var createCallResponse = await controller.createCall(accountId, body);
console.log(createCallResponse.result.callId);
var speakSentence = new SpeakSentence({
sentence: "test",
voice: "susan",
gender: "female",
locale: "en_US",
});
var response = new Response(speakSentence);
console.log(response.toBxml());
This package can be used with Node >= 10
Information for credentials for this package can be found at https://dev.bandwidth.com/guides/accountCredentials.html
FAQs
Bandwidth's HTTP voice platform
The npm package @bandwidth/voice receives a total of 891 weekly downloads. As such, @bandwidth/voice popularity was classified as not popular.
We found that @bandwidth/voice demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.