Skip to content

Commit

Permalink
Update Transcription API Docs (#157)
Browse files Browse the repository at this point in the history
* Removed duplicate section in Voicemail, added documentation to Voicemail Transcription

* Cleaned up first sentence of Custom API

* Formatting fix
  • Loading branch information
danry25 authored and markjcrane committed Nov 9, 2018
1 parent 4ce6784 commit 22d1be1
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 45 deletions.
47 changes: 7 additions & 40 deletions source/applications/voicemail.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Here you can edit voicemail settings.

* Play Tutorial- Play the voicemail tutorial after the next voicemail login
* Greeting- When you dial ***97**, record a greeting and set a number you can choose which greeting to use
* Alternate Greet ID- An alternative greet id used in the default greeting
* Alternate Greet ID- An alternative greet id used in the default greeting
* Options- Define caller options for the voicemail greeting
* Mail to- have voicemails emailed to this address
* Voicemail File- Select a listening option to include with the email notification
Expand All @@ -26,7 +26,7 @@ Here you can edit voicemail settings.

.. note::

Starting version 4.2 remote access to voicemail by interupting the greeting message by pressing "*" and entering the password is disabled by default.
Starting version 4.2 remote access to voicemail by interrupting the greeting message by pressing "*" and entering the password is disabled by default.

To enable remote access to voicemail

Expand Down Expand Up @@ -101,13 +101,13 @@ These variables can be set in advanced -> variables or in the dialplan.
+---------------------------+----------------+
| vm_disk_quota | 0-3600 seconds |
+---------------------------+----------------+
| vm_message_ext | wav or mp3 |
| vm_message_ext | wav or mp3 |
+---------------------------+----------------+
| voicemail_authorized | true or false |
| voicemail_authorized | true or false |
+---------------------------+----------------+
| vm_say_caller_id_number | true or false |
| vm_say_caller_id_number | true or false |
+---------------------------+----------------+
| vm_say_date_time | true or false |
| vm_say_date_time | true or false |
+---------------------------+----------------+

Wav file is the default voicemail message file type.
Expand All @@ -126,40 +126,7 @@ Voicemail Transcription

|
Uses API services to transcribe voicemails into text to be used in the app-sms and the voicemail to email options.

The following services are supported. Others can be added but would need to be developed.

* Microsoft Bing
Sign up and language information is located on `Microsoft Site <https://www.microsoft.com/cognitive-services/en-us/Speech-api/documentation/API-Reference-REST/BingVoiceRecognition>`_

.. warning:: We cannot use mod_shout to record Voicemails because the transcription service needs an uncompressed version of the audio. Therefore we will record in WAV and then use LAME to re-encode in MP3. This could cause added resource utilization to your system.

**Goto Advanced > Default Settings.**
Add the following entries

+-------------+-----------------------+-----------+---------------------------+-----------+
| Category | Subcategory | Type | Value | Enabled |
+=============+=======================+===========+===========================+===========+
| voicemail | transcribe_provider | text | microsoft | True |
+-------------+-----------------------+-----------+---------------------------+-----------+
| voicemail | microsoft_key1 | text | {your microsoft key #1} | True |
+-------------+-----------------------+-----------+---------------------------+-----------+
| voicemail | microsoft_key2 | text | {your microsoft key #2} | True |
+-------------+-----------------------+-----------+---------------------------+-----------+
| voicemail | transcribe_language | text | en-US | True |
+-------------+-----------------------+-----------+---------------------------+-----------+
| voicemail | transcribe_enabled | boolean | true | True |
+-------------+-----------------------+-----------+---------------------------+-----------+

Click "Reload" at the top of the page.

**Goto Status > Sip Status.**

Click "Flush Memcache", "Reload XML" and "Rescan".

If you entered your key's correctly, you should now start getting transcriptions delivered in your voicemail to email and you will also see them on the Messages page.

FusionPBX supports Voicemail Transcription, where emails will include a transcribed version of the voicemail the email was sent in regards to. To configure this feature, see applications/voicemail_transcription.rst.


.. _Voicemail Default Settings: /en/latest/advanced/default_settings.html#id32
47 changes: 42 additions & 5 deletions source/applications/voicemail_transcription.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ Voicemail Transcription

|
Uses API services to transcribe voicemails into text to be used in the app-sms and the voicemail to email options. Currently (11/3/16) only supports microsoft bing
Uses API services to transcribe voicemails into text to be used in the app-sms and the voicemail to email options. Bing's Speech API or other generic APIs can be used.

Sign up and language information is located on `Microsoft Site <https://www.microsoft.com/cognitive-services/en-us/Speech-api/documentation/API-Reference-REST/BingVoiceRecognition>`_
Bing API
====================


Sign up and language information is located on `Microsoft Site <https://www.microsoft.com/cognitive-services/en-us/Speech-api/documentation/API-Reference-REST/BingVoiceRecognition>`_ Note: The Bing Speech API is deprecated as of October 2018, this works for now but needs to be ported to `the new API <https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/cognitive-services/Speech-Service/how-to-migrate-from-bing-speech.md>`_

.. warning:: We cannot use mod_shout to record Voicemails because the transcription service needs an uncompressed version of the audio. Therefore we will record in WAV and then use LAME to re-encode in MP3. This could cause added resource utilization to your system.

Expand All @@ -26,11 +30,44 @@ Add the following entries
+-------------+-----------------------+-----------+---------------------------+-----------+
| voicemail | transcribe_enabled | boolean | true | True |
+-------------+-----------------------+-----------+---------------------------+-----------+


Click "Reload" at the top of the page.

**Goto Status > Sip Status.**

Click "Flush Memcache", "Reload XML" and "Rescan".

If you entered your key's correctly, you should now start getting transcriptions delivered in your voicemail to email and you will also see them on the Messages page.

Custom API
====================


API info from the Speech to Text provider of your choice is needed, or you can self host a transcription engine like `Mozilla DeepSpeech <https://git.callpipe.com/fusionpbx/deepspeech_frontend>`_ or `Kaldi ASR <https://github.com/dialogflow/asr-server>`_

**Goto Advanced > Default Settings.**
Add the following entries

+-------------+-----------------------+-----------+---------------------------+-----------+-------------+
| Category | Subcategory | Type | Value | Enabled | Required? |
+=============+=======================+===========+===========================+===========+=============+
| voicemail | transcribe_provider | text | custom | True | |
+-------------+-----------------------+-----------+---------------------------+-----------+-------------+
| voicemail | transcription_server | text | https://yourserver | True | |
+-------------+-----------------------+-----------+---------------------------+-----------+-------------+
| voicemail | json_enabled | boolean | true | True | Optional |
+-------------+-----------------------+-----------+---------------------------+-----------+-------------+
| voicemail | api_key | text | your_api_key | True | Optional |
+-------------+-----------------------+-----------+---------------------------+-----------+-------------+
| voicemail | transcribe_language | text | en-US | True | |
+-------------+-----------------------+-----------+---------------------------+-----------+-------------+
| voicemail | transcribe_enabled | boolean | true | True | |
+-------------+-----------------------+-----------+---------------------------+-----------+-------------+

Click "Reload" at the top of the page.

**Goto Status > Sip Status.**

Click "Flush Memcache", "Reload XML" and "Rescan".

If you entered your key's correctly, you should now start getting transcriptions delivered in your voicemail to email and you will also see them on the Messages page.

0 comments on commit 22d1be1

Please sign in to comment.