Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

433 B
Raw Blame
#pragma once

#include <stdexcept>
#include <string>

namespace funasr {

enum class OutputFormat {
    kLog,
    kJsonl,
};

OutputFormat ParseOutputFormat(const std::string& value);

std::string FormatResultJson(const std::string& key, const std::string& mode,
                             const std::string& text, const std::string& timestamp,
                             const std::string& stamp_sents);

}  // namespace funasr