Registry for managing multiple audio transcription backends like OpenAI and local engines. Use when handling speech-to-text integration.
// Source: https://github.com/ionclaw-org/ionclaw | License: MIT | Copyright 2026 IonClaw
// Provided via justclaw.it.com; keep this notice with the code.
#include "ionclaw/transcription/TranscriptionProviderRegistry.hpp"
#include "ionclaw/transcription/LocalTranscriptionProvider.hpp"
#include "ionclaw/transcription/OpenAITranscriptionProvider.hpp"
namespace ionclaw
{
namespace transcription
{
TranscriptionProviderRegistry::TranscriptionProviderRegistry()
{
registerProvider("openai", std::make_unique<OpenAITranscriptionProvider>("openai"));
registerProvider("grok", std::make_unique<OpenAITranscriptionProvider>("grok"));
registerProvider("local", std::make_unique<LocalTranscriptionProvider>("local"));
}
TranscriptionProviderRegistry &TranscriptionProviderRegistry::instance()
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key