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

Class PocketTTSModel

include/engine/models/pocket_tts/model.h:15–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13struct PocketTTSGraphCapacityConfig;
14
15class PocketTTSModel {
16public:
17 static PocketTTSModel load(const ModelConfig & config);
18
19 PocketTTSModel() = default;
20 ~PocketTTSModel() = default;
21 PocketTTSModel(const PocketTTSModel &) = default;
22 PocketTTSModel & operator=(const PocketTTSModel &) = default;
23 PocketTTSModel(PocketTTSModel &&) noexcept = default;
24 PocketTTSModel & operator=(PocketTTSModel &&) noexcept = default;
25
26 std::unique_ptr<runtime::IVoiceTaskSession> create_task_session(
27 const runtime::TaskSpec & task,
28 const runtime::SessionOptions & options) const;
29
30 const std::filesystem::path & model_dir() const noexcept;
31
32private:
33 friend std::unique_ptr<class PocketTTSLoadedModel> load_pocket_tts_model(const runtime::ModelLoadRequest & request);
34
35 PocketTTSModel(std::filesystem::path model_dir, std::shared_ptr<const PocketTTSAssets> manifest);
36
37 std::filesystem::path model_dir_;
38 std::shared_ptr<const PocketTTSAssets> manifest_;
39};
40

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected