Skip to content

DeepgramProvider.DeepgramSpeechModel

Namespace: Vercel.AI.Deepgram

public sealed class DeepgramProvider.DeepgramSpeechModel : ISpeechModel

Deepgram Aura text-to-speech model.

Inheritance: object

Implements: ISpeechModel

View source

DeepgramSpeechModel(DeepgramProvider, string)

Section titled “DeepgramSpeechModel(DeepgramProvider, string)”
public DeepgramSpeechModel(DeepgramProvider provider, string modelId)

Creates a speech model.

Parameters

Name Type Description
provider DeepgramProvider
modelId string

View source

public string ModelId { get; }

Model id.

Value: string

View source

public string Provider { get; }

Provider id.

Value: string

View source

DoGenerateAsync(SpeechCallOptions, CancellationToken)

Section titled “DoGenerateAsync(SpeechCallOptions, CancellationToken)”
public Task<SpeechResult> DoGenerateAsync(SpeechCallOptions options, CancellationToken cancellationToken)

Synthesizes speech.

Parameters

Name Type Description
options SpeechCallOptions
cancellationToken CancellationToken

Returns: Task<SpeechResult>

View source

GenerateAsync(DeepgramSpeechRequest, CancellationToken)

Section titled “GenerateAsync(DeepgramSpeechRequest, CancellationToken)”
public Task<DeepgramSpeechResult> GenerateAsync(DeepgramSpeechRequest request, CancellationToken cancellationToken)

Synthesizes speech with /v1/speak.

Parameters

Name Type Description
request DeepgramSpeechRequest
cancellationToken CancellationToken

Returns: Task<DeepgramSpeechResult>

View source

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