Skip to content

SpeechStreamUsage

Namespace: Vercel.AI.Operations

public sealed class SpeechStreamUsage

Usage of a speech stream call. Every field is optional because providers bill speech in different units.

Inheritance: object

View source

public int? InputCharacters { get; set; }

Number of input text characters (Unicode code points) sent for synthesis, if known.

Value: int?

View source

public int? InputTokens { get; set; }

Number of input text tokens, if reported.

Value: int?

View source

public int? OutputTokens { get; set; }

Number of output audio tokens, if reported.

Value: int?

View source

public JsonElement? Raw { get; set; }

Raw usage information from the provider, in the shape the provider returns it.

Value: JsonElement?

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product