Download cpp/inflect_tts_sdk/examples/main.cpp from AXERA-TECH/inflect_nano_v2: direct link, hf CLI and curl.
- Browser
- Download file 554 Bytes
-
https://huggingface.co/AXERA-TECH/inflect_nano_v2/resolve/main/cpp/inflect_tts_sdk/examples/main.cpp
- Command line
-
hf download hf://AXERA-TECH/inflect_nano_v2/cpp/inflect_tts_sdk/examples/main.cpp
-
curl -L -o main.cpp https://huggingface.co/AXERA-TECH/inflect_nano_v2/resolve/main/cpp/inflect_tts_sdk/examples/main.cpp
554 Bytes
| int main() { | |
| try { | |
| TTSEngine engine("../models/inflect_encoder.axmodel", | |
| "../models/inflect_decoder.axmodel"); | |
| std::cout << "✅ Inflect-Nano-v2 TTS initialized" << std::endl; | |
| std::cout << " Encoder: 1.0 MB, Decoder: 5.6 MB" << std::endl; | |
| std::cout << " Sample rate: 24 kHz, U16 quantization" << std::endl; | |
| } catch (const std::exception& e) { | |
| std::cerr << "❌ " << e.what() << std::endl; | |
| return 1; | |
| } | |
| return 0; | |
| } | |