Component evidence

STT Protocol Transport Abstraction (stt/SttTransport.java)

mateclaw · mateclaw-server/src/main/java/vip/mate/stt/SttTransport.java · java · Apache-2.0
realtimevoicelang:javatag:protocoltag:abstraction

A protocol-agnostic abstraction layer for Speech-to-Text services. Reuse this to support multiple STT vendors using the same wire protocol without redundant code.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/mateaix/mateclaw | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package vip.mate.stt;

/**
 * Issue #76: protocol-family abstraction for STT.
 *
 * <p>The original {@link SttProvider} bundled "which vendor is this" with
 * "how does its wire protocol work", forcing every new vendor to ship a
 * dedicated Java class even when the wire protocol is identical to an
 * existing one. {@code SttTransport} is the protocol-only half: it knows how
 * to send a request and parse a response, but doesn't care whether the
 * endpoint is OpenAI cloud, FunASR self-hosted, SiliconFlow, Groq, or
 * Together — anything that speaks the same protocol can plug in.
 *
 * <

... (truncated -- full source via MCP)