MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / append_token

Function append_token

src/models/vibevoice/tokenizer_text.cpp:112–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 if (compression_ratio <= 0) {
111 throw std::runtime_error("VibeVoice speech compression ratio must be positive");
112 }
113 return static_cast<int64_t>((samples + static_cast<size_t>(compression_ratio) - 1) /
114 static_cast<size_t>(compression_ratio));
115}
116
117std::vector<float> convert_prompt_audio_to_mono_resampled(
118 const runtime::AudioBuffer & audio,

Callers 1

encode_promptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected