![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
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 works both with and without browsers.
yarn add ringcentral-softphone @ringcentral/sdk
For node.js you also need to:
yarn add ws wrtc
because node.js by default doesn't support WebSocket & WebRTC.
import RingCentral from '@ringcentral/sdk'
import Softphone from 'ringcentral-softphpone'
const rc = new RingCentral(...)
await rc.login(...)
const softphone = new Softphone(rc)
await softphone.register()
await rc.logout()
// const stream = <input-audio-stream-from-microphone>
softphone.on('INVITE', sipMessage => {
softphone.answer(stream)
softphone.on('track', e => {
// phone call connected
const { track, streams } = e
// you can get audio data from track and streams
})
})
softphone.on('BYE', () => {
// phone call ended
})
yarn install
cp .env.sample .env
Edit .env
file to specify credentials.
Note: please do NOT get rid of NODE_TLS_REJECT_UNAUTHORIZED=0
in .env
file. It is required for WebSocket to work without a TLS certificate installed on your laptop.
You may remove it however if your app target browsers instead of node.js.
For node.js:
yarn server
For browsers:
yarn browser
Make a phone call to the phone number you configured in .env
file.
The app will auto pick up the call and save your voice to audio.raw
You can play audio.raw
file by command line
play -b 16 -e signed -c 1 -r 48000 audio.raw
If play
command is not available, please install sox: brew install sox
.
The app will auto pick up the call and redirect your voice to an <audio/>
HTML5 element.
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.
FAQs
This is a TypeScript SDK for RingCentral Softphone. It is a complete rewrite of the [RingCentral Softphone SDK for JavaScript](https://github.com/ringcentral/ringcentral-softphone-js)
The npm package ringcentral-softphone receives a total of 23 weekly downloads. As such, ringcentral-softphone popularity was classified as not popular.
We found that ringcentral-softphone demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.