Skip to content

Stop Transcription

 REST API Version 2.0 only.

Stops transcribing the current call. Transcription results may continue to be sent to the results page for several seconds after this action has run.

Examples:

Stop a transcription:
"stop_transcription": 
{
}

The following is an example of the series of results that may be sent to the results page after transcription has been stopped. Interim results have been enabled and max alternatives was set to 2:

Interim result:
"action_result":
{
    "action": "start_transcription",
    "result":
    {   
        "transcription": 
        [
            {
                "alternatives": 
                [
                    {
                        "text": "That's all"
                    }
                ],
                "final": false,
                "stability": 0.92,
                "direction": "inbound"
            },
            {
                "alternatives": 
                [
                    {
                        "text": "forks"
                    },
                    {
                        "text": "folks"
                    }
                ],
                "final": false,
                "stability": 0.1,
                "direction": "inbound"
            }
        ],
        "id": "54321",
        "completed": false
    }
}
Final result:
"action_result":
{
    "action": "start_transcription",
    "result":
    {   
        "transcription": 
        [
            {
                "alternatives": 
                [
                    {
                        "text": "That's all folks",
                        "confidence": 0.93
                    },
                    {
                        "text": "That's all forks"
                    }
                ],
                "final": true,
                "direction": "inbound"
            }
        ],
        "id": "54321",
        "completed": false
    }
}
Completed result:
"action_result":
{
    {
        "action": "start_transcription",
        "result":
        {   
            "transcription": [],
            "id": "54321",
            "completed": true
        }
    }
}

StopTranscription Class

Namespace: Aculab.Cloud.RestAPIWrapper

Assembly: Aculab.Cloud.RestAPIWrapper.dll

An action to stop transcribing the current call.

public class StopTranscription : TelephonyAction
{
    // Constructors
    public StopTranscription();
}

Examples:

Stop a transcription:
List<TelephonyAction> actions = new List<TelephonyAction>();

actions.Add(new StopTranscription());
public class StopTranscription : TelephonyAction
{
    // Constructors
    public StopTranscription();
}

Examples:

Stop a transcription:
List<TelephonyAction> actions = new List<TelephonyAction>();

actions.Add(new StopTranscription());
public class StopTranscription : TelephonyAction
{
    // Constructors
    public StopTranscription();
}

Examples:

Stop a transcription:
List<TelephonyAction> actions = new List<TelephonyAction>();

actions.Add(new StopTranscription());

StopTranscription Class

Namespace: Aculab.Cloud.RestAPIWrapper

Assembly: Aculab.Cloud.RestAPIWrapper.dll

An action to stop transcribing the current call.

Public Class StopTranscription
    Inherits TelephonyAction

    ' Constructors
    Public Sub New ()
End Class

Examples:

Stop a transcription:
Dim actions = New List(Of TelephonyAction)

actions.Add(New StopTranscription())
Public Class StopTranscription
    Inherits TelephonyAction

    ' Constructors
    Public Sub New ()
End Class

Examples:

Stop a transcription:
Dim actions = New List(Of TelephonyAction)

actions.Add(New StopTranscription())

class StopTranscription extends TelephonyAction

Represents a stop transcription action.

Class synopsis:

// Constructors:
public StopTranscription()

Examples:

Stop a transcription:
List<TelephonyAction> actions = new ArrayList<TelephonyAction>();

actions.add(new StopTranscription());

class StopTranscription

Represents a stop transcription action.

Class synopsis:

# StopTranscription object:
StopTranscription()

Examples:

Stop a transcription:
# Create a list of actions that will be passed to the TelephonyResponse constructor
list_of_actions = []

list_of_actions.append(StopTranscription())

The StopTranscription class

Introduction

Represents a stop transcription action.

Class synopsis

class StopTranscription extends ActionBase {

    /* methods */
    public __construct()
}

Examples:

Stop a transcription
$response->addAction(new \Aculab\TelephonyRestAPI\StopTranscription());