18 years building·A gift is waiting for youCollect ▶

How to build call transcription on Cloud Softphone

Give your subscribers a written record of every call. Where the audio comes from, which route to pick, and the hooks Cloud Softphone gives you.

Published
5 min read
Milan Tomas
Milan Tomas
Adding call transcription to Cloud Softphone: two people on a phone call over a field of printed pages

A typical scenario

Somebody gives you an address, a reference number and a date during a ten minute call. By the time you hang up, you remember two of them, and not reliably. You were in the field or driving and couldn't take notes.

We get asked whether Cloud Softphone can transcribe calls. Not on its own. Your backend produces the transcript, Cloud Softphone gives you the hooks to start it and a place to show it, and what sits in between is a backend integration.

Start with the call's audio

Your transcription engine (the speech engine that turns audio into text) needs the call's audio. It can come from your switch, which handles the call's media, or from the app, which sends its recording to your server when the call ends.

Three routes to a call transcript

  1. Record, then transcribe after hangup. The cheapest route and easy to retry. A failure costs a transcript, not the call. Start here.
  2. Fork the media live on your switch or SBC. Needed for captions during the call. It costs more per minute, and if the transcription engine fails, it fails while the call is still running. The app itself sends audio only as a recording after the call.
  3. SIPREC, the standard way for an SBC to send a copy of each call to a recording server. If an SBC on your network already supports it and your recorder accepts it, this route needs the least new code.

Transcription and end-to-end encryption

An end-to-end encrypted call can still be transcribed after it ends, from the app's recording. During the call, your switch hears it only if it holds the keys.

SDES keys travel in the SIP signalling, so every server that relays the call setup can read them. DTLS-SRTP and ZRTP agree keys between the two phones, but a switch that terminates the media, as many SBCs and WebRTC gateways do, holds the keys for each side. Only ZRTP lets callers catch that: each phone shows a short code, and codes that differ when read aloud mean something sits in between.

People who choose end-to-end encryption usually turn in-app recording off, so no copy of the audio exists. Once the call ends, nobody can listen to it.

Record each side of the call on its own channel

Record each direction on its own channel where your switch allows it. The app can also write a two-channel file. Either way, speaker separation is exact and free. Mix them into one file and the transcription engine has to guess who said what. You cannot fix this after recording.

The app hooks are configuration, the rest is backend

A man on a call at his desk by the window, a grid of ruled lines on the wall beside him

Starting the recording

On the app side, a callState trigger can fire a webRequest when a call is established, telling your backend to start recording, or a dtmf function for switches that start recording from a feature code. %callId% is the SIP Call-ID in the call scope, so the app can hand your backend the identifier it sees.

Whether your switch sees the same one is another matter. A PBX or SBC acting as a B2BUA can generate a different Call-ID on each leg, so pass the app-side Call-ID to your backend and map it to the recording identifier there, and check on your own stack before assuming the two match.

Everything after the hook is yours to build: recording control on the switch or a server that receives the app's recordings, the mapping between identifiers, transcript storage and search, and the transcript page itself, which needs authentication because it holds the content of people's calls.

Showing the transcript

When the transcript is ready, your backend can send an HTTP push, a CustomTextMessage whose Notification.action.appPath opens the custom tab at your transcript page with the call ID in the URL. That needs the app's push tokens reported to your server and the tab navigation configured correctly. Send it as an ordinary notification; on iOS, PushKit pushes are reserved for incoming calls. The subscriber can also open the custom tab and pick the call from your list.

A custom web tab is available in six Cloud Softphone bundles, with no additional custom-tab feature charge in the white-label bundles. Starting the recording from the app, automatically, with a call-screen button or a DTMF code, runs on Custom Functions, a paid option. Transcription and transcript hosting are separate costs.

Turn calls into revenue

Learn how to monetize your softphone with in-app web tabs, fast, elegant, and low-code.

Get the ebook
  • Works on iOS, Android, and desktop
  • Unlock new in-app revenue streams
  • 100% free to download

Recording and transcription can trigger consent, communications-privacy and data-protection obligations. Check the requirements in every relevant jurisdiction, including those of the participants, since the other party may not be in the same country as your subscriber.

Decide early who can enable it (per account, user or call), whether the other party is told, and how long transcripts are kept.

Accuracy and cost

Speech recognition handles conversation well but sometimes gets proper nouns, addresses, reference numbers and email addresses wrong, which are usually the parts people need. If your engine supports vocabulary hints, give it your product, place and customer names. That helps without guaranteeing them, so keep the audio one tap away from the transcript so people can check.

Pricing depends on the provider and is often per minute, so decide which calls to transcribe: on demand, per account, or above a minimum call length.

Summary

Capture each direction separately where you can, transcribe after hangup unless you need live captions from your switch, correlate the app's Call-ID with your recording through an identifier you have verified, and show the result in an authenticated web tab. Cloud Softphone provides the hooks; the integration is backend work.

If you are considering this for your subscribers, raise it on your next discovery call or demo and our presales engineers will walk through it for your stack.

Build a white label softphone app

Create a custom white-label softphone with Cloud Softphone.

Book a Demo
  • No devs needed
  • Native desktop apps
  • 100+ premium features
Milan Tomas

About the author

Milan Tomas

Milan Tomas is a senior sales engineer with over a decade of experience developing VoIP softphone apps. Throughout his career, he has helped numerous telcos successfully implement their communications projects.