| 22 | using Clock = std::chrono::steady_clock; |
| 23 | constexpr int64_t kDefaultTextChunkSize = 2048; |
| 24 | |
| 25 | std::shared_ptr<const VoxCPM2Assets> |
| 26 | require_assets(std::shared_ptr<const VoxCPM2Assets> assets) { |
| 27 | if (assets == nullptr) { |
| 28 | throw std::runtime_error("VoxCPM2 session requires assets"); |
| 29 | } |
| 30 | return assets; |
| 31 | } |
| 32 | |
| 33 | void reject_enabled_denoise( |