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

Method VoxCPM2TextTokenizer

src/models/voxcpm2/tokenizer_text.cpp:281–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279} // namespace
280
281VoxCPM2TextTokenizer::VoxCPM2TextTokenizer(std::shared_ptr<const VoxCPM2Assets> assets) {
282 if (assets == nullptr) {
283 throw std::runtime_error("VoxCPM2 text tokenizer requires assets");
284 }
285 impl_ = load_impl(*assets);
286}
287
288std::vector<int32_t> VoxCPM2TextTokenizer::encode(const std::string & text) const {
289 std::vector<int32_t> ids;

Callers

nothing calls this directly

Calls 1

load_implFunction · 0.70

Tested by

no test coverage detected