Language

PushAudioInputStream.Commit Method

Definition

Overloads

Name Description
Commit()

Requests that the audio written so far be committed as a completed segment. Non-blocking; returns immediately with a correlation token.

The request is advisory. A token is issued as soon as the request is recorded, but there is no guarantee that it will be acknowledged: the service may not support inline commit, or the session may end first. Applications must tolerate a token that is never echoed.

Commit(UInt32)

Same as Commit() but scoped to a single channel of a multichannel input. The service acknowledges the commit on the named channel only.

Commit()

Requests that the audio written so far be committed as a completed segment. Non-blocking; returns immediately with a correlation token.

The request is advisory. A token is issued as soon as the request is recorded, but there is no guarantee that it will be acknowledged: the service may not support inline commit, or the session may end first. Applications must tolerate a token that is never echoed.

public uint Commit();
member this.Commit : unit -> uint32
Public Function Commit () As UInteger

Returns

A token greater than 0 that can be matched against the commit token value on a subsequent Recognized event, or 0 if the call was rejected outright e.g. based on the SDK-local rate limit (at most one successful commit per 100 ms per push stream).

Applies to

Commit(UInt32)

Same as Commit() but scoped to a single channel of a multichannel input. The service acknowledges the commit on the named channel only.

public uint Commit(uint channelId);
member this.Commit : uint32 -> uint32
Public Function Commit (channelId As UInteger) As UInteger

Parameters

channelId
UInt32

0-indexed channel identifier.

Returns

A token greater than 0, or 0 if the call was rejected.

Applies to