npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ev-audio-streaming-transcription

v1.1.1

Published

Quick test package for RingCenTral Engage Voice Audio Streaming feature

Downloads

20

Readme

Engage Voice Audio Streaming Quick Test Package

This package is to test basic functionality of Engage Voice Audio Streaming feature by using Google Cloud Speech-To-Text Service

Getting Started

1. Enable Google Cloud Speech-To-Text Service

After above steps, you will get a JSON key file in your local drive. Copy the path(including file name) as {keyFilePath}.

2. Install and Use This Package

  1. Create a new folder and do:

npm init

npm i ev-audio-streaming-transcription

  1. Create a new file server.js with code below in it:
const { default: runServer } = require('ev-audio-streaming-transcription');

// fill in value with your {portNumber} and {keyFilePath}. eg. runServer(8000, './cred.json')
runServer({portNumber}, {keyFilePath});

And then run node server.js and you'll see:

Server started on: wss://xxxx.ngrok.io  // this is your {streamingUrl}
Client started on: https://xxxx.ngrok.io/client  // this is your {agentScriptUrl}
  1. Create a streaming profile by HTTP POST to https://engage.ringcentral.com/platform/api/media/product with body:

     {
         "productType": {productType}, //QUEUE or CAMPAIGN
         "productId": {productId}, //queueId or campaignId
         "subAccountId": {subAccountId},
         "mainAccountId": {mainAccountId},
         "rcAccountId": {rcAccountId},
         "streamingUrl": {streamingUrl},
         "secret": {secret} // optional
     }
  2. Create an Agent Script:

    • Log in to Engage Voice -> Admin
    • Agent Tools -> Script Designer -> (optional) Create a new group if needed
    • Add a new script -> In Queue/Campaign Assignments, tick on your Queue/Campaign -> Save
    • Open Script Studio -> From left panel, drag a Page component into the view -> Connect as from Start ---> Page ---> End
    • Hover on Page and Edit -> Add "iFrame" element and adjust the size -> Edit element and fill Resource Url with {agentScriptUrl} with ?callId={{model.call.uii}}. so https://xxxx.ngrok.io/client?callId={{model.call.uii}} -> Save
  3. Now we are all set. Call the number of your Queue and transcriptions should come up.

Additional Notes

  • This package only supports local debugging environment at the moment. Deployment support is WIP.