Class SttProducer

Assembly: redb.Route.Llm.dll

Speech-to-text producer: transcribes the exchange body and writes the recognised
text to Out.Body.

An empty result is a result, not a failure: silence and music transcribe to an
empty string, and the route decides what to say about that. The producer reports it
as = 0 rather than throwing, so
"nothing was said" and "recognition broke" stay distinguishable — the second one
throws.

public sealed class SttProducer : ConnectableProducer, IProducer, IProcessor

Inheritance

Object→ConnectableProducer→SttProducer

Implements

Inherited Members

Properties

ProducerEndpoint

The endpoint this producer sends to.

protected override IEndpoint ProducerEndpoint { get; }

ProducerName

Display name for logging (e.g. "http:https://api.example.com", "kafka:orders").

protected override string ProducerName { get; }

Methods

ConnectAsync(CancellationToken)

Set up connection/resources. Awaited by Start() to completion before IsStarted flips to

protected override Task ConnectAsync(CancellationToken ct)

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public override Task Process(IExchange exchange, CancellationToken ct = default)

Constructors