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

Method inspect

src/models/pocket_tts/loader.cpp:138–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 if (!manifest_) {
137 throw std::runtime_error("PocketTTS model is not loaded");
138 }
139 return std::make_unique<PocketTTSSession>(task, options, manifest_, model_dir_);
140}
141
142const std::filesystem::path & PocketTTSModel::model_dir() const noexcept {
143 return model_dir_;
144}
145
146PocketTTSLoadedModel::PocketTTSLoadedModel(
147 runtime::ModelMetadata metadata,
148 runtime::CapabilitySet capabilities,
149 PocketTTSModel model)
150 : metadata_(std::move(metadata)),
151 capabilities_(std::move(capabilities)),
152 model_(std::move(model)) {}
153
154const runtime::ModelMetadata & PocketTTSLoadedModel::metadata() const noexcept {
155 return metadata_;
156}
157
158const runtime::CapabilitySet & PocketTTSLoadedModel::capabilities() const noexcept {
159 return capabilities_;
160}
161
162std::unique_ptr<runtime::IVoiceTaskSession> PocketTTSLoadedModel::create_task_session(
163 const runtime::TaskSpec & task,
164 const runtime::SessionOptions & options) const {
165 return model_.create_task_session(task, options);
166}

Callers

nothing calls this directly

Calls 5

discover_languagesFunction · 0.85
resolve_model_rootFunction · 0.70
discover_config_assetsFunction · 0.70
discover_weight_assetsFunction · 0.70

Tested by

no test coverage detected