Share via


VoiceLiveModelFactory.InputTokenDetails Method

Definition

Details of input token usage.

public static Azure.AI.VoiceLive.InputTokenDetails InputTokenDetails(int cachedTokens = 0, int textTokens = 0, int audioTokens = 0, Azure.AI.VoiceLive.CachedTokenDetails cachedTokensDetails = default);
static member InputTokenDetails : int * int * int * Azure.AI.VoiceLive.CachedTokenDetails -> Azure.AI.VoiceLive.InputTokenDetails
Public Shared Function InputTokenDetails (Optional cachedTokens As Integer = 0, Optional textTokens As Integer = 0, Optional audioTokens As Integer = 0, Optional cachedTokensDetails As CachedTokenDetails = Nothing) As InputTokenDetails

Parameters

cachedTokens
Int32

Number of cached tokens used in the input.

textTokens
Int32

Number of text tokens used in the input.

audioTokens
Int32

Number of audio tokens used in the input.

cachedTokensDetails
CachedTokenDetails

Details of cached token usage.

Returns

A new InputTokenDetails instance for mocking.

Applies to