Swift protocols and structs for transcription and speech provider capabilities.
// Source: https://github.com/openclaw/Tachikoma | License: MIT | Copyright 2026 Peter Steinberger
// Provided via justclaw.it.com; keep this notice with the code.
#if canImport(Darwin)
import Darwin
#else
import Glibc
#endif
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
import Tachikoma // For TachikomaError and TachikomaConfiguration
private enum AudioProviderEnvironment {
static func mockModeEnabled() -> Bool {
if
let disablePointer = getenv("TACHIKOMA_DISABLE_API_TESTS"),
String(cString: disablePointer).lowercased() == "true"
{
return true
}
if
let mockPointer = getenv("TACHIKOMA_TEST_MODE"),
String(cString: mockPointer).lowercased() == "mock"
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key