{"id":22085624,"url":"https://github.com/nexmo/node-call-whisper","last_synced_at":"2025-07-24T17:31:34.913Z","repository":{"id":66173040,"uuid":"82689708","full_name":"Nexmo/node-call-whisper","owner":"Nexmo","description":"Use Call Whisper to let call center agents know the source of inbound calls","archived":false,"fork":false,"pushed_at":"2024-04-30T03:58:52.000Z","size":959,"stargazers_count":4,"open_issues_count":1,"forks_count":6,"subscribers_count":18,"default_branch":"main","last_synced_at":"2024-04-30T05:19:22.628Z","etag":null,"topics":["nexmo","nodejs","tutorial","voice"],"latest_commit_sha":null,"homepage":"https://developer.nexmo.com/tutorials/add-a-call-whisper-to-an-inbound-call","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nexmo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-21T14:34:53.000Z","updated_at":"2024-02-15T04:06:11.000Z","dependencies_parsed_at":"2023-02-21T05:16:04.162Z","dependency_job_id":null,"html_url":"https://github.com/Nexmo/node-call-whisper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fnode-call-whisper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fnode-call-whisper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fnode-call-whisper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fnode-call-whisper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nexmo","download_url":"https://codeload.github.com/Nexmo/node-call-whisper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227463798,"owners_count":17778465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nexmo","nodejs","tutorial","voice"],"created_at":"2024-12-01T01:15:23.861Z","updated_at":"2024-12-01T01:15:24.675Z","avatar_url":"https://github.com/Nexmo.png","language":"JavaScript","readme":"# Add a Call Whisper using Node and the Nexmo Voice API\n\nThis app used the Nexmo Voice APIs to demonstrate how add a \"whisper\" (a spoken announcement to only one caller before connecting) to a call using the `onAnswer` feature.\n\n## Prerequisites\n\nYou will need:\n\n* A [free Nexmo account](https://dashboard.nexmo.com/sign-up)\n* The [Nexmo CLI](https://github.com/Nexmo/nexmo-cli) installed\n* A way to run a local server on a public port, for example [Ngrok](https://ngrok.com/).\n\n\n## Installation\n\n```sh\ngit clone https://github.com/nexmo/node-call-whisper.git\ncd node-call-whispher\nnpm install\n```\n\n## Setup\n\n### Buy Numbers \u0026 Create Application\n\nTo run this application we need to buy 2 numbers, set up an application, and tie the numbers to this application.\n\n```sh\n# create an application\n\u003e nexmo app:create \"Whisper System\" http://your.domain/answer_inbound http://your.domain/event --type voice --keyfile app.key\n# check the application ID\n\u003e nexmo app:list\n12345678-1234-1234-1234-1234567890 | Whisper System\n# purchase 2 numbers\n\u003e nexmo number:buy 4420 -c GB  --confirm\nNumber purchased: 442055555555\n\u003e nexmo number:buy 4420 -c GB  --confirm\nNumber purchased: 442055555556\n# link the numbers to the application ID\n\u003e nexmo link:app 442055555555 12345678-1234-1234-1234-1234567890\n\u003e nexmo link:app 442055555556 12345678-1234-1234-1234-1234567890\n```\n\n### Run Server\n\nThe next step is to set up all of our variables in a `.env` file. You can start off by copying the example file.\n\n```sh\nmv .env.example .env\n```\n\nFill in the values in `.env` as appropriate, where `INBOUND_NUMBER_1` and `INBOUND_NUMBER_2` are the numbers you just purchased, `CALL_CENTER_NUMBER` is the number you want them to direct to, and `NEXMO_APP_FILE_NAME` is the file name of your application key (`app.key`). Finally, `DOMAIN` is the public domain or hostname your server is available on. \n\nWith this in place you can start the server.\n\n```sh\nnpm start\n```\n\nThe application should be available on \u003chttp://localhost:5000\u003e. For this to work full though, make sure to expose your server on a public domain (e.g. `your.domain` in the example above) using a tool like [Ngrok](https://ngrok.com/).\n\n## Using the App\n\nTo use the app you need two phones, or a phone and something like Skype to make the first call.\n\nWith your server running, call either of the 2 numbers you purchased. Nexmo will then make a call to `http://your.domain/answer_inbound` which puts the inbound call on hold. A call is then made to the `CALL_CENTER_NUMBER`(your other phone) where a message is played regarding the nature of the call before both parties are connected to the same conference.\n\n## More Information\n\nFor a more detailed writeup, see the [tutorial on the Nexmo Developer Portal](https://developer.nexmo.com/tutorials/add-a-call-whisper-to-an-inbound-call).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexmo%2Fnode-call-whisper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexmo%2Fnode-call-whisper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexmo%2Fnode-call-whisper/lists"}