Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@aigent/ringcentral-softphone
Advanced tools
## What are the differences between ringcentral-web-phone and this project?
ringcentral-web-phone is designed for client side and only works with browsers.
This project was originally designed for server and desktop. It doesn't require a browser to run. It could run in browser too.
yarn add ringcentral-softphone @rc-ex/core
For node.js you also need to:
yarn add ws wrtc
import { nonstandard } from 'wrtc'
softphone.once('track', e => {
const audioSink = new nonstandard.RTCAudioSink(e.track)
audioSink.ondata = data => {
// here you have the `data`
}
softphone.once('BYE', () => {
audioSink.stop()
})
})
The data you got via audioSink.ondata
is of the following structure:
{
samples: Int16Array [ ... ],
bitsPerSample: 16,
sampleRate: 48000,
channelCount: 1,
numberOfFrames: 480,
type: 'data'
}
Please note that, you may get different numbers, for example, sampleRate
you get might be 16000 instead of 48000.
yarn install
cp .env.sample .env
Edit .env
file to specify credentials.
CALLEE_FOR_TESTING
is a phone number to receive testing phone calls. You don't need to specify it if you do not make outbound calls.WEB_SOCKET_DEBUGGING=true
, then all WebSocket traffic will be printed to console.yarn server
yarn browser
Make a phone call to the phone number you configured in .env
file. The demo app will answer the call and you can speak and listen.
Let's say there is a phone call ongoing between a customer and the call agent. You can use this library to supervise this phone call to get live audio stream. You can analyze the audio stream using some AI algorithm and provide tips to the call agent in real time.
Use this library to supervise an existing phone call to get live audio stream. Translate the audio stream into text by invoking some speech-to-text service. Show the text to the caller and/or callee so they can see live transcription.
You can create a program to make a phone call or answer a phone call and play recorded audio. This is good for announcement purpose. This is also good for quick voicemail drop. Or you can use text-to-speech service to read text to the callee.
FAQs
## What are the differences between ringcentral-web-phone and this project?
The npm package @aigent/ringcentral-softphone receives a total of 2 weekly downloads. As such, @aigent/ringcentral-softphone popularity was classified as not popular.
We found that @aigent/ringcentral-softphone demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.