Skip to content

HumeProvider.HumeSpeechModel

Namespace: Vercel.AI.Hume

public sealed class HumeProvider.HumeSpeechModel : ISpeechModel

Posts utterances to /v0/tts/file.

Inheritance: object

Implements: ISpeechModel

View source

public HumeSpeechModel(HumeProvider provider)

Creates a speech model.

Parameters

Name Type Description
provider HumeProvider

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(HumeSpeechRequest, CancellationToken)

Section titled “GenerateAsync(HumeSpeechRequest, CancellationToken)”
public Task<HumeSpeechResult> GenerateAsync(HumeSpeechRequest request, CancellationToken cancellationToken)

Synthesizes speech and returns the audio bytes with response metadata.

Parameters

Name Type Description
request HumeSpeechRequest
cancellationToken CancellationToken

Returns: Task<HumeSpeechResult>

View source

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