From 7d8b3370fad94a31930dae5361c8375971d945b6 Mon Sep 17 00:00:00 2001 From: ":NoBody:" Date: Fri, 29 May 2026 16:58:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=92=8Connx=E8=BF=90=E8=A1=8C=E6=97=B6?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 159 +++ .gitignore | 36 + Cargo.toml | 58 + README.md | 187 +++ build.rs | 90 ++ docs/README_DE.md | 117 ++ docs/README_EN.md | 187 +++ docs/README_ES.md | 117 ++ docs/README_FR.md | 117 ++ docs/README_IT.md | 117 ++ docs/README_JA.md | 117 ++ docs/README_KO.md | 117 ++ docs/README_PT.md | 117 ++ docs/README_RU.md | 117 ++ flake.lock | 61 + flake.nix | 59 + pr_body.md | 38 + speakers/aiden.json | 2055 +++++++++++++++++++++++++++++++++ speakers/dylan.json | 2055 +++++++++++++++++++++++++++++++++ speakers/eric.json | 2055 +++++++++++++++++++++++++++++++++ speakers/index.json | 49 + speakers/ono_anna.json | 2055 +++++++++++++++++++++++++++++++++ speakers/ryan.json | 2055 +++++++++++++++++++++++++++++++++ speakers/serena.json | 2055 +++++++++++++++++++++++++++++++++ speakers/sohee.json | 2055 +++++++++++++++++++++++++++++++++ speakers/uncle_fu.json | 2055 +++++++++++++++++++++++++++++++++ speakers/vivian.json | 2055 +++++++++++++++++++++++++++++++++ src/assets_manager.rs | 461 ++++++++ src/bin/qwen3_tts.rs | 173 +++ src/bin/qwen3_tts_server.rs | 366 ++++++ src/download.rs | 364 ++++++ src/lib.rs | 20 + src/models/llama/mod.rs | 1049 +++++++++++++++++ src/models/mod.rs | 2 + src/models/onnx.rs | 559 +++++++++ src/models/onnx_runtime.rs | 533 +++++++++ src/tts/engine.rs | 849 ++++++++++++++ src/tts/mod.rs | 2 + src/tts/prompt.rs | 394 +++++++ src/utils/audio.rs | 65 ++ src/utils/cache.rs | 67 ++ src/utils/config.rs | 23 + src/utils/mod.rs | 6 + src/utils/stream.rs | 8 + src/utils/tokenizer.rs | 36 + src/utils/voice_file.rs | 62 + webui/audio-processor.js | 80 ++ webui/index.html | 631 ++++++++++ 48 files changed, 26105 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 README.md create mode 100644 build.rs create mode 100644 docs/README_DE.md create mode 100644 docs/README_EN.md create mode 100644 docs/README_ES.md create mode 100644 docs/README_FR.md create mode 100644 docs/README_IT.md create mode 100644 docs/README_JA.md create mode 100644 docs/README_KO.md create mode 100644 docs/README_PT.md create mode 100644 docs/README_RU.md create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 pr_body.md create mode 100644 speakers/aiden.json create mode 100644 speakers/dylan.json create mode 100644 speakers/eric.json create mode 100644 speakers/index.json create mode 100644 speakers/ono_anna.json create mode 100644 speakers/ryan.json create mode 100644 speakers/serena.json create mode 100644 speakers/sohee.json create mode 100644 speakers/uncle_fu.json create mode 100644 speakers/vivian.json create mode 100644 src/assets_manager.rs create mode 100644 src/bin/qwen3_tts.rs create mode 100644 src/bin/qwen3_tts_server.rs create mode 100644 src/download.rs create mode 100644 src/lib.rs create mode 100644 src/models/llama/mod.rs create mode 100644 src/models/mod.rs create mode 100644 src/models/onnx.rs create mode 100644 src/models/onnx_runtime.rs create mode 100644 src/tts/engine.rs create mode 100644 src/tts/mod.rs create mode 100644 src/tts/prompt.rs create mode 100644 src/utils/audio.rs create mode 100644 src/utils/cache.rs create mode 100644 src/utils/config.rs create mode 100644 src/utils/mod.rs create mode 100644 src/utils/stream.rs create mode 100644 src/utils/tokenizer.rs create mode 100644 src/utils/voice_file.rs create mode 100644 webui/audio-processor.js create mode 100644 webui/index.html diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0a88f9f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,159 @@ +name: Build and Release + +on: + push: + tags: + - 'v*' + workflow_dispatch: + +permissions: + contents: write + +jobs: + build: + name: Build - ${{ matrix.platform.os_name }} - ${{ matrix.platform.backend }} + runs-on: ${{ matrix.platform.os }} + strategy: + matrix: + platform: + # Windows Vulkan + - os_name: Windows-x64 + os: windows-latest + target: x86_64-pc-windows-msvc + backend: vulkan + features: vulkan + bin: qwen3_tts.exe + name: qwen3-tts-windows-x64-vulkan.zip + llama_url: https://github.com/ggerganov/llama.cpp/releases/download/b7885/llama-b7885-bin-win-vulkan-x64.zip + ort_url: https://github.com/microsoft/onnxruntime/releases/download/v1.23.2/onnxruntime-win-x64-1.23.2.zip + + # Windows CUDA 12 + - os_name: Windows-x64 + os: windows-latest + target: x86_64-pc-windows-msvc + backend: cuda + features: cuda + bin: qwen3_tts.exe + name: qwen3-tts-windows-x64-cuda12.zip + llama_url: https://github.com/ggerganov/llama.cpp/releases/download/b7885/llama-b7885-bin-win-cuda-12.4-x64.zip + ort_url: https://github.com/microsoft/onnxruntime/releases/download/v1.23.2/onnxruntime-win-x64-gpu-1.23.2.zip + + # Linux Vulkan + - os_name: Linux-x64 + os: ubuntu-latest + target: x86_64-unknown-linux-gnu + backend: vulkan + features: vulkan + bin: qwen3_tts + name: qwen3-tts-linux-x64-vulkan.tar.gz + llama_url: https://github.com/ggerganov/llama.cpp/releases/download/b7885/llama-b7885-bin-ubuntu-vulkan-x64.tar.gz + ort_url: https://github.com/microsoft/onnxruntime/releases/download/v1.23.2/onnxruntime-linux-x64-1.23.2.tgz + + # macOS Metal + - os_name: macOS-ARM64 + os: macos-14 + target: aarch64-apple-darwin + backend: metal + features: "" # No specific feature needed for Metal? Or 'metal'? Cargo.toml doesn't have 'metal'. + bin: qwen3_tts + name: qwen3-tts-macos-arm64.tar.gz + llama_url: https://github.com/ggerganov/llama.cpp/releases/download/b7885/llama-b7885-bin-macos-arm64.tar.gz + ort_url: https://github.com/microsoft/onnxruntime/releases/download/v1.23.2/onnxruntime-osx-arm64-1.23.2.tgz + + steps: + - uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.platform.target }} + + - name: Install Linux Dependencies + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install -y libasound2-dev pkg-config libssl-dev + + - name: Build Binary + run: cargo build --release --target ${{ matrix.platform.target }} --features "${{ matrix.platform.features }}" + + - name: Prepare Distribution + shell: bash + run: | + mkdir -p dist + mkdir -p dist/runtime + mkdir -p dist/models + mkdir -p dist/speakers + + # Copy Binary + cp target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} dist/ + + # Copy Readme + cp README.md dist/ + + # Copy Speakers + cp -r speakers/* dist/speakers/ + + - name: Download and Bundle Runtimes (Windows) + if: runner.os == 'Windows' + shell: powershell + run: | + # Download Llama.cpp + $llamaUrl = "${{ matrix.platform.llama_url }}" + Invoke-WebRequest -Uri $llamaUrl -OutFile "llama.zip" + Expand-Archive -Path "llama.zip" -DestinationPath "dist/runtime" -Force + rm llama.zip + + # Download ONNX Runtime + $ortUrl = "${{ matrix.platform.ort_url }}" + Invoke-WebRequest -Uri $ortUrl -OutFile "ort.zip" + Expand-Archive -Path "ort.zip" -DestinationPath "ort_temp" -Force + Copy-Item "ort_temp/*/lib/*.dll" -Destination "dist/runtime" -Recurse + rm ort.zip + rm ort_temp -Recurse -Force + + - name: Download and Bundle Runtimes (Unix) + if: runner.os != 'Windows' + shell: bash + run: | + # Download Llama.cpp + # Check if URL exists (optional but good practice) + wget -O llama.tar.gz "${{ matrix.platform.llama_url }}" + tar -xzvf llama.tar.gz -C dist/runtime + rm llama.tar.gz + + # Download ONNX Runtime + wget -O ort.tgz "${{ matrix.platform.ort_url }}" + mkdir ort_temp + tar -xzvf ort.tgz -C ort_temp + + # Copy libs + find ort_temp -name "*.so*" -exec cp {} dist/runtime/ \; + find ort_temp -name "*.dylib" -exec cp {} dist/runtime/ \; + + rm ort.tgz + rm -rf ort_temp + + - name: Archive Release (Windows) + if: runner.os == 'Windows' + shell: powershell + run: | + Compress-Archive -Path dist/* -DestinationPath ${{ matrix.platform.name }} + + - name: Archive Release (Unix) + if: runner.os != 'Windows' + shell: bash + run: | + tar -czvf ${{ matrix.platform.name }} -C dist . + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.platform.name }} + path: ${{ matrix.platform.name }} + + - name: Create Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: ${{ matrix.platform.name }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..79a37c5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +# Rust +/target +/debug +/release +Cargo.lock + +# Models and Large Assets +/models +*.onnx +*.gguf +*.pth +*.pt +*.bin +*.wav +*.qvoice + +# Runtime binaries +/runtime +*.dll +*.exe +*.so +*.dylib + +# IDE +.idea +.vscode +*.iml +.trae +# OS +Thumbs.db +Desktop.ini +.DS_Store + +#test +.flake.nix.swp +/down diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..75ed71b --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,58 @@ +[package] +name = "qwen3-tts" +version = "0.1.7" +edition = "2021" +description = "Rust implementation of Qwen3-TTS with ONNX Runtime" +license = "MIT OR Apache-2.0" +repository = "https://github.com/cgisky1980/Qwen3-TTS-Rust" +readme = "README.md" + +[lib] +path = "src/lib.rs" + + +[dependencies] +tokio = { version = "1", features = ["full"] } +ndarray = "0.17" +ndarray-npy = "0.8" +rand = "0.8" +ort = { version = "2.0.0-rc.11", features = ["ndarray", "load-dynamic", "cuda", "directml","rocm"] } +tokenizers = "0.22" +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] } +hound = "3.5" +cpal = "0.15" +serde = { version = "1", features = ["derive"] } +serde_json = "1" +libc = "0.2" +libloading = "0.8" +clap = { version = "4.5", features = ["derive"] } +mel_spec = "0.3" +rustfft = "6.4.1" +reqwest = { version = "0.11", features = ["blocking", "stream"] } +indicatif = "0.17" +futures-util = "0.3" +zip = "2.2" +tar = "0.4" +flate2 = "1.0" +num_cpus = "1.16" +axum = { version = "0.7", features = ["ws", "multipart"] } +axum-server = "0.7" +tower = "0.5" +tower-http = { version = "0.6", features = ["fs", "cors"] } +tokio-tungstenite = "0.26" +base64 = "0.22" + +[features] +cuda = [] +vulkan = [] +profile = [] # 启用性能分析计时 + + +[target.'cfg(windows)'.dependencies] +winapi = { version = "0.3", features = ["consoleapi", "fileapi", "handleapi", "winbase"] } + +[profile.release] +opt-level = 3 +lto = true +codegen-units = 1 diff --git a/README.md b/README.md new file mode 100644 index 0000000..45c6101 --- /dev/null +++ b/README.md @@ -0,0 +1,187 @@ +# Qwen3-TTS Rust + +[中文](README.md) | [English](docs/README_EN.md) | [日本語](docs/README_JA.md) | [Korean](docs/README_KO.md) | [Français](docs/README_FR.md) | [Español](docs/README_ES.md) | [Italiano](docs/README_IT.md) | [Deutsch](docs/README_DE.md) | [Русский](docs/README_RU.md) | [Português](docs/README_PT.md) + +本项目是 Qwen3-TTS 的极致性能实现,核心突破在于 **“指令驱动 (Instruction-Driven)”** 与 **“零样本自定义音色 (Custom Speakers)”** 的深度集成。通过 Rust 的内存安全特性与 llama.cpp/ONNX 的高效推理,为您提供工业级的文本转语音解决方案。 + +## 🚀 核心特性 + +### 1. 极致性能与流式响应 +- **并发流式解码**:采用 4 帧 (64 codes) 粒度的并发解码策略,首字延迟低至 300ms,实现“边想边说”的流畅体验。 +- **硬件加速**:默认启用 **Vulkan** (Windows/Linux) 和 **Metal** (macOS) 加速,显著提升推理速度。 +- **自动运行时管理**:零配置环境,自动下载并配置 `llama.cpp` (b7885) 和 `onnxruntime`,开箱即用。 + +### 2. 灵活的说话人管理 +- **自动扫描与缓存**:启动时自动加载 `speakers/` 目录下的音色文件。 +- **多种选择方式**:支持通过 CLI 参数 `--speaker ` 或 `--voice-file ` 灵活选择说话人。 +- **智能回退**:若指定说话人不存在,自动回退至默认音色 (vivian),确保系统稳定性。 + +### 3. 精准的指令控制 +- **指令驱动**:支持在文本中嵌入 `[高兴]`、`[悲伤]` 等情感指令,实时调整演绎风格。 +- **EOS 对齐**:完美对齐 Qwen3 的停止逻辑,支持多种 EOS token 检测,杜绝生成末尾的静音或乱码。 + +## 📊 性能基准 (Benchmarks) + +| Backend | Model (GGUF) | RTF (Real-Time Factor) | Avg Time (ms) | Avg Audio (s) | Status | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **CUDA** | Q5_K_M | **0.553** | 1162.6 | 2.19 | OK | +| **Vulkan** | Q5_K_M | 0.598 | 1285.4 | 2.19 | OK | +| **CUDA** | Q8_0 | 0.640 | 1523.4 | 2.44 | OK | +| **Vulkan** | Q8_0 | 0.638 | 1502.0 | 2.44 | OK | +| **CPU** | Q5_K_M | 1.677 | 2823.4 | 1.96 | OK | +| **CPU** | Q8_0 | 1.866 | 4160.1 | 2.51 | OK | + +- **测试环境**: Intel Core i9-13980HX, NVIDIA RTX 2080 Ti. 显存占用约 0.7-1.5GB. +- **数据来源**: Windows 平台 10 轮生成平均值。 +- **最佳性能**: RTF 0.553 (CUDA + Q5KM),即生成 1 秒音频仅需 0.553 秒。 + +## 🛠️ 快速上手 + +### 1. 基础生成 +使用默认说话人生成语音: +```powershell +cargo run --bin qwen3_tts -- --text "你好,欢迎使用 Qwen3-TTS Rust!" +``` + +### 2. 指定说话人 +使用预设或自定义说话人: +```powershell +# 使用名称 (需在 speakers/ 目录下存在对应的 .json 文件) +cargo run --bin qwen3_tts -- --text "今天天气不错。" --speaker dylan + +# 使用指定文件路径 +cargo run --bin qwen3_tts -- --text "我是自定义音色。" --voice-file "path/to/my_voice.json" +``` + +### 3. 克隆新音色 +只需 3-10 秒的参考音频即可克隆音色: +```powershell +cargo run --bin qwen3_tts -- ` + --ref-audio "ref.wav" ` + --ref-text "参考音频对应的文本内容" ` + --save-voice "speakers/my_voice.json" ` + --text "新音色已保存,现在可以直接使用了!" +``` + +### 4. 风格/情感控制 (Instruction) +通过 `--instruction` 参数实时改变说话语气: +```powershell +# 悲伤语气 +cargo run --bin qwen3_tts -- --text "对不起,我不是故意的..." --instruction "悲伤啜泣,非常难过" + +# 开心语气 +cargo run --bin qwen3_tts -- --text "太棒了!我们成功了!" --instruction "开心激动,语速稍快" +``` + +### 5. 高级配置 +```powershell +cargo run --bin qwen3_tts -- ` + --text "长文本生成测试。" ` + --max-steps 1024 ` # 调整最大生成长度 + --output "output.wav" # 指定输出文件名 +``` + +### 6. 采样参数调整 +通过采样参数控制生成的随机性和多样性: +```powershell +# 调整温度 (更高 = 更随机,0.0 = 贪婪) +cargo run --bin qwen3_tts -- --text "测试文本" --temperature 0.8 + +# 使用固定种子复现结果 +cargo run --bin qwen3_tts -- --text "测试文本" --seed 12345 + +# 完整参数示例 +cargo run --bin qwen3_tts -- ` + --text "测试采样参数。" ` + --temperature 0.7 ` # 温度 (默认 0.7) + --top-k 40 ` # Top-K 采样 (默认 40) + --top-p 0.9 ` # Top-P 核采样 (默认 0.9) + --seed 42 # 随机种子 (可选) +``` + +## 📦 作为 Rust 库使用 + +在 `Cargo.toml` 中添加依赖: + +```toml +[dependencies] +# 本地引用 +qwen3-tts = { path = "." } + +# 或从 Git 引用 +# qwen3-tts = { git = "https://github.com/cgisky1980/Qwen3-TTS-Rust" } +``` + +### 基础用法 + +```rust +use qwen3_tts::{TtsEngine, VoiceFile, SamplerConfig}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + // 1. 初始化引擎 + let mut engine = TtsEngine::new("models", "none").await?; + + // 2. 配置采样参数 (可选) + let sampler_config = SamplerConfig::new(0.7, 40, 0.9, None); + engine.set_sampler_config(sampler_config); + + // 3. 加载音色 + let voice = VoiceFile::load("speakers/sohee.json")?; + + // 4. 生成语音 + let audio = engine.generate_with_voice( + "你好,欢迎使用 Qwen3-TTS!", + &voice, + None, // instruction + )?; + + // 5. 保存音频 + audio.save_wav("output.wav")?; + + Ok(()) +} +``` + +### 从参考音频创建音色 + +```rust +use qwen3_tts::TtsEngine; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let mut engine = TtsEngine::new("models", "none").await?; + + // 从参考音频提取音色 + let voice = engine.create_voice_file( + "reference.wav", + "参考音频对应的文本".to_string(), + )?; + + // 保存音色文件 + voice.save("speakers/my_voice.json")?; + + // 使用新音色生成 + let audio = engine.generate_with_voice("测试新音色", &voice, None)?; + audio.save_wav("output.wav")?; + + Ok(()) +} +``` + +## �� 目录结构 + +系统首次运行会自动构建如下结构: + +```text +. +├── models/ # 模型文件 (GGUF, ONNX, Tokenizer) +├── runtime/ # 自动下载的依赖库 (dll, so, dylib) +└── speakers/ # 用户自定义音色 +``` + +## 📜 许可证与致谢 + +- 基于 **MIT / Apache 2.0** 许可证。 +- 感谢 [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) 官方仓库提供的模型与技术基座。 +- 感谢 [Qwen3-TTS-GGUF](https://github.com/HaujetZhao/Qwen3-TTS-GGUF) 提供的推理流程启发。 diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..60199da --- /dev/null +++ b/build.rs @@ -0,0 +1,90 @@ +<<<<<<< nkmumlpy 2a5b03c6 "chore: 版本号更新到 0.1.7" (rebase destination) +fn main() {} +||||||| sxlwkwwz 32ed8f03 "fix: improve library extraction and bake RPATH into binary (#8)" (parents of rebased revision) +use std::env; +use std::path::PathBuf; + +fn main() { + let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap(); + + if target_os == "linux" { + // Set the RPATH for the binary + println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN/runtime"); + + // Optional: Automatically link the runtime folder into the target directory + // so 'cargo run' works without extra RPATHs + let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); + let profile_dir = out_dir.join("../../../"); // Points to target/debug or target/release + let project_runtime = + PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("runtime"); + let target_runtime = profile_dir.join("runtime"); + + if project_runtime.exists() && !target_runtime.exists() { + #[cfg(unix)] + let _ = std::os::unix::fs::symlink(project_runtime, target_runtime); + } + } +} +======= +use std::env; +use std::fs; +use std::path::Path; +use std::path::PathBuf; +use std::process::Command; + +#[cfg(unix)] +fn ensure_symlink(target: &Path, link: &Path) { + if link.exists() { + return; + } + + if let Some(parent) = link.parent() { + let _ = fs::create_dir_all(parent); + } + + let _ = std::os::unix::fs::symlink(target, link); +} + +#[cfg(not(unix))] +fn ensure_symlink(_target: &Path, _link: &Path) {} + +fn main() { + let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap(); + + if target_os == "linux" { + // Set the RPATH for the binary + //println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN/runtime"); + + // Optional: Automatically link the runtime folder into the target directory + // so 'cargo run' works without extra RPATHs + let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); + let profile_dir = out_dir.join("../../../"); // Points to target/debug or target/release + let project_runtime = + PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("runtime"); + let target_runtime = profile_dir.join("runtime"); + + if project_runtime.exists() && !target_runtime.exists() { + #[cfg(unix)] + let _ = std::os::unix::fs::symlink(&project_runtime, target_runtime); + } + + if project_runtime.exists() { + for lib_name in ["libstdc++.so.6", "libgomp.so.1"] { + if let Ok(output) = Command::new("gcc") + .arg(format!("-print-file-name={}", lib_name)) + .output() + { + if output.status.success() { + let lib_path = String::from_utf8_lossy(&output.stdout).trim().to_string(); + let lib_path = PathBuf::from(lib_path); + if lib_path.exists() && lib_path.file_name().is_some() { + let link_path = project_runtime.join(lib_path.file_name().unwrap()); + ensure_symlink(&lib_path, &link_path); + } + } + } + } + } + } +} +>>>>>>> xruvuyky 5f2a399a "修复了编译错误和onnx运行时链接错误" (rebased revision) diff --git a/docs/README_DE.md b/docs/README_DE.md new file mode 100644 index 0000000..d8b487e --- /dev/null +++ b/docs/README_DE.md @@ -0,0 +1,117 @@ +# Qwen3-TTS Rust + +[简体中文](../README.md) | [English](README_EN.md) | [日本語](README_JA.md) | [Korean](README_KO.md) | [Français](README_FR.md) | [Español](README_ES.md) | [Italiano](README_IT.md) | [Deutsch](README_DE.md) | [Русский](README_RU.md) | [Português](README_PT.md) + +This project is the ultimate performance implementation of Qwen3-TTS. The core breakthroughs are the deep integration of **"Instruction-Driven"** synthesis and **"Zero-shot Custom Speakers (Cloning)"**. Leveraging Rust's memory safety and the efficient inference of llama.cpp/ONNX, it provides an industrial-grade text-to-speech solution. + +## 🚀 Core Features + +### 1. Extreme Performance & Streaming +- **Concurrent Streaming Decoding**: Uses a 4-frame (64 codes) granularity for concurrent decoding, determining first-token latency as low as 300ms for a "speech-while-thinking" experience. +- **Hardware Acceleration**: **Vulkan** (Windows/Linux) and **Metal** (macOS) acceleration are enabled by default, significantly boosting inference speed. +- **Automatic Runtime Management**: Zero-config environment; automatically downloads and configures `llama.cpp` (b7885) and `onnxruntime`, ready to use out of the box. + +### 2. Flexible Speaker Management +- **Auto-Scan & Cache**: Automatically loads voice files from the `speakers/` directory on startup. +- **Versatile Selection**: Supports flexible speaker selection via CLI arguments `--speaker ` or `--voice-file `. +- **Smart Fallback**: Automatically falls back to the default voice (vivian) if the specified speaker is not found, ensuring system stability. + +### 3. Precise Instruction Control +- **Instruction-Driven**: Supports embedding emotion tags like `[Happy]`, `[Sad]` in the text to adjust the delivery style in real-time. +- **EOS Alignment**: Perfectly aligned with Qwen3's stop logic, supporting multiple EOS token detections to prevent generation of trailing silence or artifacts. + +## 📊 Benchmarks + +| Backend | Model (GGUF) | RTF (Real-Time Factor) | Avg Time (ms) | Avg Audio (s) | Status | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **CUDA** | Q5_K_M | **0.553** | 1162.6 | 2.19 | OK | +| **Vulkan** | Q5_K_M | 0.598 | 1285.4 | 2.19 | OK | +| **CUDA** | Q8_0 | 0.640 | 1523.4 | 2.44 | OK | +| **Vulkan** | Q8_0 | 0.638 | 1502.0 | 2.44 | OK | +| **CPU** | Q5_K_M | 1.677 | 2823.4 | 1.96 | OK | +| **CPU** | Q8_0 | 1.866 | 4160.1 | 2.51 | OK | + +- **Test Environment**: Intel Core i9-13980HX, NVIDIA RTX 2080 Ti. VRAM Usage ~0.7-1.5GB. +- **Data Source**: Average of 10 generations on Windows. +- **Best Performance**: RTF 0.553 (CUDA + Q5KM), meaning 1 second of audio takes only 0.553 seconds to generate. + +## 🛠️ Quick Start + +### 1. Basic Generation +Generate speech using the default speaker: +```powershell +cargo run --bin qwen3_tts -- --text "Hello, welcome to use Qwen3-TTS Rust!" +``` + +### 2. Specify Speaker +Use a preset or custom speaker: +```powershell +# Use name (requires corresponding .json file in speakers/ directory) +cargo run --bin qwen3_tts -- --text "The weather is nice today." --speaker dylan + +# Use specific file path +cargo run --bin qwen3_tts -- --text "I am a custom voice." --voice-file "path/to/my_voice.json" +``` + +### 3. Clone New Voice +Clone a voice with just 3-10 seconds of reference audio: +```powershell +cargo run --bin qwen3_tts -- ` + --ref-audio "ref.wav" ` + --ref-text "The text content corresponding to the reference audio" ` + --save-voice "speakers/my_voice.json" ` + --text "New voice saved, you can use it directly now!" +``` + +### 4. Style/Emotion Control (Instruction) +Change the speaking style in real-time via the `--instruction` argument: +```powershell +# Sad tone +cargo run --bin qwen3_tts -- --text "I'm sorry, I didn't mean to..." --instruction "Sad and sobbing, very upset" + +# Happy tone +cargo run --bin qwen3_tts -- --text "Awesome! We did it!" --instruction "Happy and excited, slightly faster" +``` + +### 5. Advanced Configuration +```powershell +cargo run --bin qwen3_tts -- ` + --text "Long text generation test." ` + --max-steps 1024 ` # Adjust max generation length + --output "output.wav" # Specify output filename +``` + +### 6. Sampling Parameters +Control randomness and diversity of generation through sampling parameters: +```powershell +# Adjust temperature (higher = more random, 0.0 = greedy) +cargo run --bin qwen3_tts -- --text "Test text" --temperature 0.8 + +# Use fixed seed for reproducibility +cargo run --bin qwen3_tts -- --text "Test text" --seed 12345 + +# Full parameter example +cargo run --bin qwen3_tts -- ` + --text "Testing sampling parameters." ` + --temperature 0.7 ` # Temperature (default 0.7) + --top-k 40 ` # Top-K sampling (default 40) + --top-p 0.9 ` # Top-P nucleus sampling (default 0.9) + --seed 42 # Random seed (optional) +``` + +## 📂 Directory Structure + +The system automatically builds the following structure on first run: + +```text +. +├── models/ # Model files (GGUF, ONNX, Tokenizer) +├── runtime/ # Auto-downloaded dependencies (dll, so, dylib) +└── speakers/ # User custom voices +``` + +## 📜 License & Acknowledgements + +- Based on **MIT / Apache 2.0** license. +- Thanks to [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) official repository for models and technical foundation. +- Thanks to [Qwen3-TTS-GGUF](https://github.com/HaujetZhao/Qwen3-TTS-GGUF) for inspiration on the GGUF inference flow. diff --git a/docs/README_EN.md b/docs/README_EN.md new file mode 100644 index 0000000..a07d1e9 --- /dev/null +++ b/docs/README_EN.md @@ -0,0 +1,187 @@ +# Qwen3-TTS Rust + +[简体中文](../README.md) | [English](README_EN.md) | [日本語](README_JA.md) | [Korean](README_KO.md) | [Français](README_FR.md) | [Español](README_ES.md) | [Italiano](README_IT.md) | [Deutsch](README_DE.md) | [Русский](README_RU.md) | [Português](README_PT.md) + +This project is the ultimate performance implementation of Qwen3-TTS. The core breakthroughs are the deep integration of **"Instruction-Driven"** synthesis and **"Zero-shot Custom Speakers (Cloning)"**. Leveraging Rust's memory safety and the efficient inference of llama.cpp/ONNX, it provides an industrial-grade text-to-speech solution. + +## 🚀 Core Features + +### 1. Extreme Performance & Streaming +- **Concurrent Streaming Decoding**: Uses a 4-frame (64 codes) granularity for concurrent decoding, determining first-token latency as low as 300ms for a "speech-while-thinking" experience. +- **Hardware Acceleration**: **Vulkan** (Windows/Linux) and **Metal** (macOS) acceleration are enabled by default, significantly boosting inference speed. +- **Automatic Runtime Management**: Zero-config environment; automatically downloads and configures `llama.cpp` (b7885) and `onnxruntime`, ready to use out of the box. + +### 2. Flexible Speaker Management +- **Auto-Scan & Cache**: Automatically loads voice files from the `speakers/` directory on startup. +- **Versatile Selection**: Supports flexible speaker selection via CLI arguments `--speaker ` or `--voice-file `. +- **Smart Fallback**: Automatically falls back to the default voice (vivian) if the specified speaker is not found, ensuring system stability. + +### 3. Precise Instruction Control +- **Instruction-Driven**: Supports embedding emotion tags like `[Happy]`, `[Sad]` in the text to adjust the delivery style in real-time. +- **EOS Alignment**: Perfectly aligned with Qwen3's stop logic, supporting multiple EOS token detections to prevent generation of trailing silence or artifacts. + +## 📊 Benchmarks + +| Backend | Model (GGUF) | RTF (Real-Time Factor) | Avg Time (ms) | Avg Audio (s) | Status | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **CUDA** | Q5_K_M | **0.553** | 1162.6 | 2.19 | OK | +| **Vulkan** | Q5_K_M | 0.598 | 1285.4 | 2.19 | OK | +| **CUDA** | Q8_0 | 0.640 | 1523.4 | 2.44 | OK | +| **Vulkan** | Q8_0 | 0.638 | 1502.0 | 2.44 | OK | +| **CPU** | Q5_K_M | 1.677 | 2823.4 | 1.96 | OK | +| **CPU** | Q8_0 | 1.866 | 4160.1 | 2.51 | OK | + +- **Test Environment**: Intel Core i9-13980HX, NVIDIA RTX 2080 Ti. VRAM Usage ~0.7-1.5GB. +- **Data Source**: Average of 10 generations on Windows. +- **Best Performance**: RTF 0.553 (CUDA + Q5KM), meaning 1 second of audio takes only 0.553 seconds to generate. + +## 🛠️ Quick Start + +### 1. Basic Generation +Generate speech using the default speaker: +```powershell +cargo run --bin qwen3_tts -- --text "Hello, welcome to use Qwen3-TTS Rust!" +``` + +### 2. Specify Speaker +Use a preset or custom speaker: +```powershell +# Use name (requires corresponding .json file in speakers/ directory) +cargo run --bin qwen3_tts -- --text "The weather is nice today." --speaker dylan + +# Use specific file path +cargo run --bin qwen3_tts -- --text "I am a custom voice." --voice-file "path/to/my_voice.json" +``` + +### 3. Clone New Voice +Clone a voice with just 3-10 seconds of reference audio: +```powershell +cargo run --bin qwen3_tts -- ` + --ref-audio "ref.wav" ` + --ref-text "The text content corresponding to the reference audio" ` + --save-voice "speakers/my_voice.json" ` + --text "New voice saved, you can use it directly now!" +``` + +### 4. Style/Emotion Control (Instruction) +Change the speaking style in real-time via the `--instruction` argument: +```powershell +# Sad tone +cargo run --bin qwen3_tts -- --text "I'm sorry, I didn't mean to..." --instruction "Sad and sobbing, very upset" + +# Happy tone +cargo run --bin qwen3_tts -- --text "Awesome! We did it!" --instruction "Happy and excited, slightly faster" +``` + +### 5. Advanced Configuration +```powershell +cargo run --bin qwen3_tts -- ` + --text "Long text generation test." ` + --max-steps 1024 ` # Adjust max generation length + --output "output.wav" # Specify output filename +``` + +### 6. Sampling Parameters +Control randomness and diversity of generation through sampling parameters: +```powershell +# Adjust temperature (higher = more random, 0.0 = greedy) +cargo run --bin qwen3_tts -- --text "Test text" --temperature 0.8 + +# Use fixed seed for reproducibility +cargo run --bin qwen3_tts -- --text "Test text" --seed 12345 + +# Full parameter example +cargo run --bin qwen3_tts -- ` + --text "Testing sampling parameters." ` + --temperature 0.7 ` # Temperature (default 0.7) + --top-k 40 ` # Top-K sampling (default 40) + --top-p 0.9 ` # Top-P nucleus sampling (default 0.9) + --seed 42 # Random seed (optional) +``` + +## 📦 Using as a Rust Library + +Add dependency in your `Cargo.toml`: + +```toml +[dependencies] +# Local reference +qwen3-tts = { path = "." } + +# Or from Git +# qwen3-tts = { git = "https://github.com/cgisky1980/Qwen3-TTS-Rust" } +``` + +### Basic Usage + +```rust +use qwen3_tts::{TtsEngine, VoiceFile, SamplerConfig}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + // 1. Initialize engine + let mut engine = TtsEngine::new("models", "none").await?; + + // 2. Configure sampling (optional) + let sampler_config = SamplerConfig::new(0.7, 40, 0.9, None); + engine.set_sampler_config(sampler_config); + + // 3. Load voice + let voice = VoiceFile::load("speakers/sohee.json")?; + + // 4. Generate speech + let audio = engine.generate_with_voice( + "Hello, welcome to Qwen3-TTS!", + &voice, + None, // instruction + )?; + + // 5. Save audio + audio.save_wav("output.wav")?; + + Ok(()) +} +``` + +### Create Voice from Reference Audio + +```rust +use qwen3_tts::TtsEngine; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let mut engine = TtsEngine::new("models", "none").await?; + + // Extract voice from reference audio + let voice = engine.create_voice_file( + "reference.wav", + "Text corresponding to reference audio".to_string(), + )?; + + // Save voice file + voice.save("speakers/my_voice.json")?; + + // Generate with new voice + let audio = engine.generate_with_voice("Testing new voice", &voice, None)?; + audio.save_wav("output.wav")?; + + Ok(()) +} +``` + +## 📂 Directory Structure + +The system automatically builds the following structure on first run: + +```text +. +├── models/ # Model files (GGUF, ONNX, Tokenizer) +├── runtime/ # Auto-downloaded dependencies (dll, so, dylib) +└── speakers/ # User custom voices +``` + +## 📜 License & Acknowledgements + +- Based on **MIT / Apache 2.0** license. +- Thanks to [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) official repository for models and technical foundation. +- Thanks to [Qwen3-TTS-GGUF](https://github.com/HaujetZhao/Qwen3-TTS-GGUF) for inspiration on the GGUF inference flow. diff --git a/docs/README_ES.md b/docs/README_ES.md new file mode 100644 index 0000000..d8b487e --- /dev/null +++ b/docs/README_ES.md @@ -0,0 +1,117 @@ +# Qwen3-TTS Rust + +[简体中文](../README.md) | [English](README_EN.md) | [日本語](README_JA.md) | [Korean](README_KO.md) | [Français](README_FR.md) | [Español](README_ES.md) | [Italiano](README_IT.md) | [Deutsch](README_DE.md) | [Русский](README_RU.md) | [Português](README_PT.md) + +This project is the ultimate performance implementation of Qwen3-TTS. The core breakthroughs are the deep integration of **"Instruction-Driven"** synthesis and **"Zero-shot Custom Speakers (Cloning)"**. Leveraging Rust's memory safety and the efficient inference of llama.cpp/ONNX, it provides an industrial-grade text-to-speech solution. + +## 🚀 Core Features + +### 1. Extreme Performance & Streaming +- **Concurrent Streaming Decoding**: Uses a 4-frame (64 codes) granularity for concurrent decoding, determining first-token latency as low as 300ms for a "speech-while-thinking" experience. +- **Hardware Acceleration**: **Vulkan** (Windows/Linux) and **Metal** (macOS) acceleration are enabled by default, significantly boosting inference speed. +- **Automatic Runtime Management**: Zero-config environment; automatically downloads and configures `llama.cpp` (b7885) and `onnxruntime`, ready to use out of the box. + +### 2. Flexible Speaker Management +- **Auto-Scan & Cache**: Automatically loads voice files from the `speakers/` directory on startup. +- **Versatile Selection**: Supports flexible speaker selection via CLI arguments `--speaker ` or `--voice-file `. +- **Smart Fallback**: Automatically falls back to the default voice (vivian) if the specified speaker is not found, ensuring system stability. + +### 3. Precise Instruction Control +- **Instruction-Driven**: Supports embedding emotion tags like `[Happy]`, `[Sad]` in the text to adjust the delivery style in real-time. +- **EOS Alignment**: Perfectly aligned with Qwen3's stop logic, supporting multiple EOS token detections to prevent generation of trailing silence or artifacts. + +## 📊 Benchmarks + +| Backend | Model (GGUF) | RTF (Real-Time Factor) | Avg Time (ms) | Avg Audio (s) | Status | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **CUDA** | Q5_K_M | **0.553** | 1162.6 | 2.19 | OK | +| **Vulkan** | Q5_K_M | 0.598 | 1285.4 | 2.19 | OK | +| **CUDA** | Q8_0 | 0.640 | 1523.4 | 2.44 | OK | +| **Vulkan** | Q8_0 | 0.638 | 1502.0 | 2.44 | OK | +| **CPU** | Q5_K_M | 1.677 | 2823.4 | 1.96 | OK | +| **CPU** | Q8_0 | 1.866 | 4160.1 | 2.51 | OK | + +- **Test Environment**: Intel Core i9-13980HX, NVIDIA RTX 2080 Ti. VRAM Usage ~0.7-1.5GB. +- **Data Source**: Average of 10 generations on Windows. +- **Best Performance**: RTF 0.553 (CUDA + Q5KM), meaning 1 second of audio takes only 0.553 seconds to generate. + +## 🛠️ Quick Start + +### 1. Basic Generation +Generate speech using the default speaker: +```powershell +cargo run --bin qwen3_tts -- --text "Hello, welcome to use Qwen3-TTS Rust!" +``` + +### 2. Specify Speaker +Use a preset or custom speaker: +```powershell +# Use name (requires corresponding .json file in speakers/ directory) +cargo run --bin qwen3_tts -- --text "The weather is nice today." --speaker dylan + +# Use specific file path +cargo run --bin qwen3_tts -- --text "I am a custom voice." --voice-file "path/to/my_voice.json" +``` + +### 3. Clone New Voice +Clone a voice with just 3-10 seconds of reference audio: +```powershell +cargo run --bin qwen3_tts -- ` + --ref-audio "ref.wav" ` + --ref-text "The text content corresponding to the reference audio" ` + --save-voice "speakers/my_voice.json" ` + --text "New voice saved, you can use it directly now!" +``` + +### 4. Style/Emotion Control (Instruction) +Change the speaking style in real-time via the `--instruction` argument: +```powershell +# Sad tone +cargo run --bin qwen3_tts -- --text "I'm sorry, I didn't mean to..." --instruction "Sad and sobbing, very upset" + +# Happy tone +cargo run --bin qwen3_tts -- --text "Awesome! We did it!" --instruction "Happy and excited, slightly faster" +``` + +### 5. Advanced Configuration +```powershell +cargo run --bin qwen3_tts -- ` + --text "Long text generation test." ` + --max-steps 1024 ` # Adjust max generation length + --output "output.wav" # Specify output filename +``` + +### 6. Sampling Parameters +Control randomness and diversity of generation through sampling parameters: +```powershell +# Adjust temperature (higher = more random, 0.0 = greedy) +cargo run --bin qwen3_tts -- --text "Test text" --temperature 0.8 + +# Use fixed seed for reproducibility +cargo run --bin qwen3_tts -- --text "Test text" --seed 12345 + +# Full parameter example +cargo run --bin qwen3_tts -- ` + --text "Testing sampling parameters." ` + --temperature 0.7 ` # Temperature (default 0.7) + --top-k 40 ` # Top-K sampling (default 40) + --top-p 0.9 ` # Top-P nucleus sampling (default 0.9) + --seed 42 # Random seed (optional) +``` + +## 📂 Directory Structure + +The system automatically builds the following structure on first run: + +```text +. +├── models/ # Model files (GGUF, ONNX, Tokenizer) +├── runtime/ # Auto-downloaded dependencies (dll, so, dylib) +└── speakers/ # User custom voices +``` + +## 📜 License & Acknowledgements + +- Based on **MIT / Apache 2.0** license. +- Thanks to [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) official repository for models and technical foundation. +- Thanks to [Qwen3-TTS-GGUF](https://github.com/HaujetZhao/Qwen3-TTS-GGUF) for inspiration on the GGUF inference flow. diff --git a/docs/README_FR.md b/docs/README_FR.md new file mode 100644 index 0000000..d8b487e --- /dev/null +++ b/docs/README_FR.md @@ -0,0 +1,117 @@ +# Qwen3-TTS Rust + +[简体中文](../README.md) | [English](README_EN.md) | [日本語](README_JA.md) | [Korean](README_KO.md) | [Français](README_FR.md) | [Español](README_ES.md) | [Italiano](README_IT.md) | [Deutsch](README_DE.md) | [Русский](README_RU.md) | [Português](README_PT.md) + +This project is the ultimate performance implementation of Qwen3-TTS. The core breakthroughs are the deep integration of **"Instruction-Driven"** synthesis and **"Zero-shot Custom Speakers (Cloning)"**. Leveraging Rust's memory safety and the efficient inference of llama.cpp/ONNX, it provides an industrial-grade text-to-speech solution. + +## 🚀 Core Features + +### 1. Extreme Performance & Streaming +- **Concurrent Streaming Decoding**: Uses a 4-frame (64 codes) granularity for concurrent decoding, determining first-token latency as low as 300ms for a "speech-while-thinking" experience. +- **Hardware Acceleration**: **Vulkan** (Windows/Linux) and **Metal** (macOS) acceleration are enabled by default, significantly boosting inference speed. +- **Automatic Runtime Management**: Zero-config environment; automatically downloads and configures `llama.cpp` (b7885) and `onnxruntime`, ready to use out of the box. + +### 2. Flexible Speaker Management +- **Auto-Scan & Cache**: Automatically loads voice files from the `speakers/` directory on startup. +- **Versatile Selection**: Supports flexible speaker selection via CLI arguments `--speaker ` or `--voice-file `. +- **Smart Fallback**: Automatically falls back to the default voice (vivian) if the specified speaker is not found, ensuring system stability. + +### 3. Precise Instruction Control +- **Instruction-Driven**: Supports embedding emotion tags like `[Happy]`, `[Sad]` in the text to adjust the delivery style in real-time. +- **EOS Alignment**: Perfectly aligned with Qwen3's stop logic, supporting multiple EOS token detections to prevent generation of trailing silence or artifacts. + +## 📊 Benchmarks + +| Backend | Model (GGUF) | RTF (Real-Time Factor) | Avg Time (ms) | Avg Audio (s) | Status | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **CUDA** | Q5_K_M | **0.553** | 1162.6 | 2.19 | OK | +| **Vulkan** | Q5_K_M | 0.598 | 1285.4 | 2.19 | OK | +| **CUDA** | Q8_0 | 0.640 | 1523.4 | 2.44 | OK | +| **Vulkan** | Q8_0 | 0.638 | 1502.0 | 2.44 | OK | +| **CPU** | Q5_K_M | 1.677 | 2823.4 | 1.96 | OK | +| **CPU** | Q8_0 | 1.866 | 4160.1 | 2.51 | OK | + +- **Test Environment**: Intel Core i9-13980HX, NVIDIA RTX 2080 Ti. VRAM Usage ~0.7-1.5GB. +- **Data Source**: Average of 10 generations on Windows. +- **Best Performance**: RTF 0.553 (CUDA + Q5KM), meaning 1 second of audio takes only 0.553 seconds to generate. + +## 🛠️ Quick Start + +### 1. Basic Generation +Generate speech using the default speaker: +```powershell +cargo run --bin qwen3_tts -- --text "Hello, welcome to use Qwen3-TTS Rust!" +``` + +### 2. Specify Speaker +Use a preset or custom speaker: +```powershell +# Use name (requires corresponding .json file in speakers/ directory) +cargo run --bin qwen3_tts -- --text "The weather is nice today." --speaker dylan + +# Use specific file path +cargo run --bin qwen3_tts -- --text "I am a custom voice." --voice-file "path/to/my_voice.json" +``` + +### 3. Clone New Voice +Clone a voice with just 3-10 seconds of reference audio: +```powershell +cargo run --bin qwen3_tts -- ` + --ref-audio "ref.wav" ` + --ref-text "The text content corresponding to the reference audio" ` + --save-voice "speakers/my_voice.json" ` + --text "New voice saved, you can use it directly now!" +``` + +### 4. Style/Emotion Control (Instruction) +Change the speaking style in real-time via the `--instruction` argument: +```powershell +# Sad tone +cargo run --bin qwen3_tts -- --text "I'm sorry, I didn't mean to..." --instruction "Sad and sobbing, very upset" + +# Happy tone +cargo run --bin qwen3_tts -- --text "Awesome! We did it!" --instruction "Happy and excited, slightly faster" +``` + +### 5. Advanced Configuration +```powershell +cargo run --bin qwen3_tts -- ` + --text "Long text generation test." ` + --max-steps 1024 ` # Adjust max generation length + --output "output.wav" # Specify output filename +``` + +### 6. Sampling Parameters +Control randomness and diversity of generation through sampling parameters: +```powershell +# Adjust temperature (higher = more random, 0.0 = greedy) +cargo run --bin qwen3_tts -- --text "Test text" --temperature 0.8 + +# Use fixed seed for reproducibility +cargo run --bin qwen3_tts -- --text "Test text" --seed 12345 + +# Full parameter example +cargo run --bin qwen3_tts -- ` + --text "Testing sampling parameters." ` + --temperature 0.7 ` # Temperature (default 0.7) + --top-k 40 ` # Top-K sampling (default 40) + --top-p 0.9 ` # Top-P nucleus sampling (default 0.9) + --seed 42 # Random seed (optional) +``` + +## 📂 Directory Structure + +The system automatically builds the following structure on first run: + +```text +. +├── models/ # Model files (GGUF, ONNX, Tokenizer) +├── runtime/ # Auto-downloaded dependencies (dll, so, dylib) +└── speakers/ # User custom voices +``` + +## 📜 License & Acknowledgements + +- Based on **MIT / Apache 2.0** license. +- Thanks to [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) official repository for models and technical foundation. +- Thanks to [Qwen3-TTS-GGUF](https://github.com/HaujetZhao/Qwen3-TTS-GGUF) for inspiration on the GGUF inference flow. diff --git a/docs/README_IT.md b/docs/README_IT.md new file mode 100644 index 0000000..d8b487e --- /dev/null +++ b/docs/README_IT.md @@ -0,0 +1,117 @@ +# Qwen3-TTS Rust + +[简体中文](../README.md) | [English](README_EN.md) | [日本語](README_JA.md) | [Korean](README_KO.md) | [Français](README_FR.md) | [Español](README_ES.md) | [Italiano](README_IT.md) | [Deutsch](README_DE.md) | [Русский](README_RU.md) | [Português](README_PT.md) + +This project is the ultimate performance implementation of Qwen3-TTS. The core breakthroughs are the deep integration of **"Instruction-Driven"** synthesis and **"Zero-shot Custom Speakers (Cloning)"**. Leveraging Rust's memory safety and the efficient inference of llama.cpp/ONNX, it provides an industrial-grade text-to-speech solution. + +## 🚀 Core Features + +### 1. Extreme Performance & Streaming +- **Concurrent Streaming Decoding**: Uses a 4-frame (64 codes) granularity for concurrent decoding, determining first-token latency as low as 300ms for a "speech-while-thinking" experience. +- **Hardware Acceleration**: **Vulkan** (Windows/Linux) and **Metal** (macOS) acceleration are enabled by default, significantly boosting inference speed. +- **Automatic Runtime Management**: Zero-config environment; automatically downloads and configures `llama.cpp` (b7885) and `onnxruntime`, ready to use out of the box. + +### 2. Flexible Speaker Management +- **Auto-Scan & Cache**: Automatically loads voice files from the `speakers/` directory on startup. +- **Versatile Selection**: Supports flexible speaker selection via CLI arguments `--speaker ` or `--voice-file `. +- **Smart Fallback**: Automatically falls back to the default voice (vivian) if the specified speaker is not found, ensuring system stability. + +### 3. Precise Instruction Control +- **Instruction-Driven**: Supports embedding emotion tags like `[Happy]`, `[Sad]` in the text to adjust the delivery style in real-time. +- **EOS Alignment**: Perfectly aligned with Qwen3's stop logic, supporting multiple EOS token detections to prevent generation of trailing silence or artifacts. + +## 📊 Benchmarks + +| Backend | Model (GGUF) | RTF (Real-Time Factor) | Avg Time (ms) | Avg Audio (s) | Status | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **CUDA** | Q5_K_M | **0.553** | 1162.6 | 2.19 | OK | +| **Vulkan** | Q5_K_M | 0.598 | 1285.4 | 2.19 | OK | +| **CUDA** | Q8_0 | 0.640 | 1523.4 | 2.44 | OK | +| **Vulkan** | Q8_0 | 0.638 | 1502.0 | 2.44 | OK | +| **CPU** | Q5_K_M | 1.677 | 2823.4 | 1.96 | OK | +| **CPU** | Q8_0 | 1.866 | 4160.1 | 2.51 | OK | + +- **Test Environment**: Intel Core i9-13980HX, NVIDIA RTX 2080 Ti. VRAM Usage ~0.7-1.5GB. +- **Data Source**: Average of 10 generations on Windows. +- **Best Performance**: RTF 0.553 (CUDA + Q5KM), meaning 1 second of audio takes only 0.553 seconds to generate. + +## 🛠️ Quick Start + +### 1. Basic Generation +Generate speech using the default speaker: +```powershell +cargo run --bin qwen3_tts -- --text "Hello, welcome to use Qwen3-TTS Rust!" +``` + +### 2. Specify Speaker +Use a preset or custom speaker: +```powershell +# Use name (requires corresponding .json file in speakers/ directory) +cargo run --bin qwen3_tts -- --text "The weather is nice today." --speaker dylan + +# Use specific file path +cargo run --bin qwen3_tts -- --text "I am a custom voice." --voice-file "path/to/my_voice.json" +``` + +### 3. Clone New Voice +Clone a voice with just 3-10 seconds of reference audio: +```powershell +cargo run --bin qwen3_tts -- ` + --ref-audio "ref.wav" ` + --ref-text "The text content corresponding to the reference audio" ` + --save-voice "speakers/my_voice.json" ` + --text "New voice saved, you can use it directly now!" +``` + +### 4. Style/Emotion Control (Instruction) +Change the speaking style in real-time via the `--instruction` argument: +```powershell +# Sad tone +cargo run --bin qwen3_tts -- --text "I'm sorry, I didn't mean to..." --instruction "Sad and sobbing, very upset" + +# Happy tone +cargo run --bin qwen3_tts -- --text "Awesome! We did it!" --instruction "Happy and excited, slightly faster" +``` + +### 5. Advanced Configuration +```powershell +cargo run --bin qwen3_tts -- ` + --text "Long text generation test." ` + --max-steps 1024 ` # Adjust max generation length + --output "output.wav" # Specify output filename +``` + +### 6. Sampling Parameters +Control randomness and diversity of generation through sampling parameters: +```powershell +# Adjust temperature (higher = more random, 0.0 = greedy) +cargo run --bin qwen3_tts -- --text "Test text" --temperature 0.8 + +# Use fixed seed for reproducibility +cargo run --bin qwen3_tts -- --text "Test text" --seed 12345 + +# Full parameter example +cargo run --bin qwen3_tts -- ` + --text "Testing sampling parameters." ` + --temperature 0.7 ` # Temperature (default 0.7) + --top-k 40 ` # Top-K sampling (default 40) + --top-p 0.9 ` # Top-P nucleus sampling (default 0.9) + --seed 42 # Random seed (optional) +``` + +## 📂 Directory Structure + +The system automatically builds the following structure on first run: + +```text +. +├── models/ # Model files (GGUF, ONNX, Tokenizer) +├── runtime/ # Auto-downloaded dependencies (dll, so, dylib) +└── speakers/ # User custom voices +``` + +## 📜 License & Acknowledgements + +- Based on **MIT / Apache 2.0** license. +- Thanks to [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) official repository for models and technical foundation. +- Thanks to [Qwen3-TTS-GGUF](https://github.com/HaujetZhao/Qwen3-TTS-GGUF) for inspiration on the GGUF inference flow. diff --git a/docs/README_JA.md b/docs/README_JA.md new file mode 100644 index 0000000..d8b487e --- /dev/null +++ b/docs/README_JA.md @@ -0,0 +1,117 @@ +# Qwen3-TTS Rust + +[简体中文](../README.md) | [English](README_EN.md) | [日本語](README_JA.md) | [Korean](README_KO.md) | [Français](README_FR.md) | [Español](README_ES.md) | [Italiano](README_IT.md) | [Deutsch](README_DE.md) | [Русский](README_RU.md) | [Português](README_PT.md) + +This project is the ultimate performance implementation of Qwen3-TTS. The core breakthroughs are the deep integration of **"Instruction-Driven"** synthesis and **"Zero-shot Custom Speakers (Cloning)"**. Leveraging Rust's memory safety and the efficient inference of llama.cpp/ONNX, it provides an industrial-grade text-to-speech solution. + +## 🚀 Core Features + +### 1. Extreme Performance & Streaming +- **Concurrent Streaming Decoding**: Uses a 4-frame (64 codes) granularity for concurrent decoding, determining first-token latency as low as 300ms for a "speech-while-thinking" experience. +- **Hardware Acceleration**: **Vulkan** (Windows/Linux) and **Metal** (macOS) acceleration are enabled by default, significantly boosting inference speed. +- **Automatic Runtime Management**: Zero-config environment; automatically downloads and configures `llama.cpp` (b7885) and `onnxruntime`, ready to use out of the box. + +### 2. Flexible Speaker Management +- **Auto-Scan & Cache**: Automatically loads voice files from the `speakers/` directory on startup. +- **Versatile Selection**: Supports flexible speaker selection via CLI arguments `--speaker ` or `--voice-file `. +- **Smart Fallback**: Automatically falls back to the default voice (vivian) if the specified speaker is not found, ensuring system stability. + +### 3. Precise Instruction Control +- **Instruction-Driven**: Supports embedding emotion tags like `[Happy]`, `[Sad]` in the text to adjust the delivery style in real-time. +- **EOS Alignment**: Perfectly aligned with Qwen3's stop logic, supporting multiple EOS token detections to prevent generation of trailing silence or artifacts. + +## 📊 Benchmarks + +| Backend | Model (GGUF) | RTF (Real-Time Factor) | Avg Time (ms) | Avg Audio (s) | Status | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **CUDA** | Q5_K_M | **0.553** | 1162.6 | 2.19 | OK | +| **Vulkan** | Q5_K_M | 0.598 | 1285.4 | 2.19 | OK | +| **CUDA** | Q8_0 | 0.640 | 1523.4 | 2.44 | OK | +| **Vulkan** | Q8_0 | 0.638 | 1502.0 | 2.44 | OK | +| **CPU** | Q5_K_M | 1.677 | 2823.4 | 1.96 | OK | +| **CPU** | Q8_0 | 1.866 | 4160.1 | 2.51 | OK | + +- **Test Environment**: Intel Core i9-13980HX, NVIDIA RTX 2080 Ti. VRAM Usage ~0.7-1.5GB. +- **Data Source**: Average of 10 generations on Windows. +- **Best Performance**: RTF 0.553 (CUDA + Q5KM), meaning 1 second of audio takes only 0.553 seconds to generate. + +## 🛠️ Quick Start + +### 1. Basic Generation +Generate speech using the default speaker: +```powershell +cargo run --bin qwen3_tts -- --text "Hello, welcome to use Qwen3-TTS Rust!" +``` + +### 2. Specify Speaker +Use a preset or custom speaker: +```powershell +# Use name (requires corresponding .json file in speakers/ directory) +cargo run --bin qwen3_tts -- --text "The weather is nice today." --speaker dylan + +# Use specific file path +cargo run --bin qwen3_tts -- --text "I am a custom voice." --voice-file "path/to/my_voice.json" +``` + +### 3. Clone New Voice +Clone a voice with just 3-10 seconds of reference audio: +```powershell +cargo run --bin qwen3_tts -- ` + --ref-audio "ref.wav" ` + --ref-text "The text content corresponding to the reference audio" ` + --save-voice "speakers/my_voice.json" ` + --text "New voice saved, you can use it directly now!" +``` + +### 4. Style/Emotion Control (Instruction) +Change the speaking style in real-time via the `--instruction` argument: +```powershell +# Sad tone +cargo run --bin qwen3_tts -- --text "I'm sorry, I didn't mean to..." --instruction "Sad and sobbing, very upset" + +# Happy tone +cargo run --bin qwen3_tts -- --text "Awesome! We did it!" --instruction "Happy and excited, slightly faster" +``` + +### 5. Advanced Configuration +```powershell +cargo run --bin qwen3_tts -- ` + --text "Long text generation test." ` + --max-steps 1024 ` # Adjust max generation length + --output "output.wav" # Specify output filename +``` + +### 6. Sampling Parameters +Control randomness and diversity of generation through sampling parameters: +```powershell +# Adjust temperature (higher = more random, 0.0 = greedy) +cargo run --bin qwen3_tts -- --text "Test text" --temperature 0.8 + +# Use fixed seed for reproducibility +cargo run --bin qwen3_tts -- --text "Test text" --seed 12345 + +# Full parameter example +cargo run --bin qwen3_tts -- ` + --text "Testing sampling parameters." ` + --temperature 0.7 ` # Temperature (default 0.7) + --top-k 40 ` # Top-K sampling (default 40) + --top-p 0.9 ` # Top-P nucleus sampling (default 0.9) + --seed 42 # Random seed (optional) +``` + +## 📂 Directory Structure + +The system automatically builds the following structure on first run: + +```text +. +├── models/ # Model files (GGUF, ONNX, Tokenizer) +├── runtime/ # Auto-downloaded dependencies (dll, so, dylib) +└── speakers/ # User custom voices +``` + +## 📜 License & Acknowledgements + +- Based on **MIT / Apache 2.0** license. +- Thanks to [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) official repository for models and technical foundation. +- Thanks to [Qwen3-TTS-GGUF](https://github.com/HaujetZhao/Qwen3-TTS-GGUF) for inspiration on the GGUF inference flow. diff --git a/docs/README_KO.md b/docs/README_KO.md new file mode 100644 index 0000000..d8b487e --- /dev/null +++ b/docs/README_KO.md @@ -0,0 +1,117 @@ +# Qwen3-TTS Rust + +[简体中文](../README.md) | [English](README_EN.md) | [日本語](README_JA.md) | [Korean](README_KO.md) | [Français](README_FR.md) | [Español](README_ES.md) | [Italiano](README_IT.md) | [Deutsch](README_DE.md) | [Русский](README_RU.md) | [Português](README_PT.md) + +This project is the ultimate performance implementation of Qwen3-TTS. The core breakthroughs are the deep integration of **"Instruction-Driven"** synthesis and **"Zero-shot Custom Speakers (Cloning)"**. Leveraging Rust's memory safety and the efficient inference of llama.cpp/ONNX, it provides an industrial-grade text-to-speech solution. + +## 🚀 Core Features + +### 1. Extreme Performance & Streaming +- **Concurrent Streaming Decoding**: Uses a 4-frame (64 codes) granularity for concurrent decoding, determining first-token latency as low as 300ms for a "speech-while-thinking" experience. +- **Hardware Acceleration**: **Vulkan** (Windows/Linux) and **Metal** (macOS) acceleration are enabled by default, significantly boosting inference speed. +- **Automatic Runtime Management**: Zero-config environment; automatically downloads and configures `llama.cpp` (b7885) and `onnxruntime`, ready to use out of the box. + +### 2. Flexible Speaker Management +- **Auto-Scan & Cache**: Automatically loads voice files from the `speakers/` directory on startup. +- **Versatile Selection**: Supports flexible speaker selection via CLI arguments `--speaker ` or `--voice-file `. +- **Smart Fallback**: Automatically falls back to the default voice (vivian) if the specified speaker is not found, ensuring system stability. + +### 3. Precise Instruction Control +- **Instruction-Driven**: Supports embedding emotion tags like `[Happy]`, `[Sad]` in the text to adjust the delivery style in real-time. +- **EOS Alignment**: Perfectly aligned with Qwen3's stop logic, supporting multiple EOS token detections to prevent generation of trailing silence or artifacts. + +## 📊 Benchmarks + +| Backend | Model (GGUF) | RTF (Real-Time Factor) | Avg Time (ms) | Avg Audio (s) | Status | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **CUDA** | Q5_K_M | **0.553** | 1162.6 | 2.19 | OK | +| **Vulkan** | Q5_K_M | 0.598 | 1285.4 | 2.19 | OK | +| **CUDA** | Q8_0 | 0.640 | 1523.4 | 2.44 | OK | +| **Vulkan** | Q8_0 | 0.638 | 1502.0 | 2.44 | OK | +| **CPU** | Q5_K_M | 1.677 | 2823.4 | 1.96 | OK | +| **CPU** | Q8_0 | 1.866 | 4160.1 | 2.51 | OK | + +- **Test Environment**: Intel Core i9-13980HX, NVIDIA RTX 2080 Ti. VRAM Usage ~0.7-1.5GB. +- **Data Source**: Average of 10 generations on Windows. +- **Best Performance**: RTF 0.553 (CUDA + Q5KM), meaning 1 second of audio takes only 0.553 seconds to generate. + +## 🛠️ Quick Start + +### 1. Basic Generation +Generate speech using the default speaker: +```powershell +cargo run --bin qwen3_tts -- --text "Hello, welcome to use Qwen3-TTS Rust!" +``` + +### 2. Specify Speaker +Use a preset or custom speaker: +```powershell +# Use name (requires corresponding .json file in speakers/ directory) +cargo run --bin qwen3_tts -- --text "The weather is nice today." --speaker dylan + +# Use specific file path +cargo run --bin qwen3_tts -- --text "I am a custom voice." --voice-file "path/to/my_voice.json" +``` + +### 3. Clone New Voice +Clone a voice with just 3-10 seconds of reference audio: +```powershell +cargo run --bin qwen3_tts -- ` + --ref-audio "ref.wav" ` + --ref-text "The text content corresponding to the reference audio" ` + --save-voice "speakers/my_voice.json" ` + --text "New voice saved, you can use it directly now!" +``` + +### 4. Style/Emotion Control (Instruction) +Change the speaking style in real-time via the `--instruction` argument: +```powershell +# Sad tone +cargo run --bin qwen3_tts -- --text "I'm sorry, I didn't mean to..." --instruction "Sad and sobbing, very upset" + +# Happy tone +cargo run --bin qwen3_tts -- --text "Awesome! We did it!" --instruction "Happy and excited, slightly faster" +``` + +### 5. Advanced Configuration +```powershell +cargo run --bin qwen3_tts -- ` + --text "Long text generation test." ` + --max-steps 1024 ` # Adjust max generation length + --output "output.wav" # Specify output filename +``` + +### 6. Sampling Parameters +Control randomness and diversity of generation through sampling parameters: +```powershell +# Adjust temperature (higher = more random, 0.0 = greedy) +cargo run --bin qwen3_tts -- --text "Test text" --temperature 0.8 + +# Use fixed seed for reproducibility +cargo run --bin qwen3_tts -- --text "Test text" --seed 12345 + +# Full parameter example +cargo run --bin qwen3_tts -- ` + --text "Testing sampling parameters." ` + --temperature 0.7 ` # Temperature (default 0.7) + --top-k 40 ` # Top-K sampling (default 40) + --top-p 0.9 ` # Top-P nucleus sampling (default 0.9) + --seed 42 # Random seed (optional) +``` + +## 📂 Directory Structure + +The system automatically builds the following structure on first run: + +```text +. +├── models/ # Model files (GGUF, ONNX, Tokenizer) +├── runtime/ # Auto-downloaded dependencies (dll, so, dylib) +└── speakers/ # User custom voices +``` + +## 📜 License & Acknowledgements + +- Based on **MIT / Apache 2.0** license. +- Thanks to [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) official repository for models and technical foundation. +- Thanks to [Qwen3-TTS-GGUF](https://github.com/HaujetZhao/Qwen3-TTS-GGUF) for inspiration on the GGUF inference flow. diff --git a/docs/README_PT.md b/docs/README_PT.md new file mode 100644 index 0000000..d8b487e --- /dev/null +++ b/docs/README_PT.md @@ -0,0 +1,117 @@ +# Qwen3-TTS Rust + +[简体中文](../README.md) | [English](README_EN.md) | [日本語](README_JA.md) | [Korean](README_KO.md) | [Français](README_FR.md) | [Español](README_ES.md) | [Italiano](README_IT.md) | [Deutsch](README_DE.md) | [Русский](README_RU.md) | [Português](README_PT.md) + +This project is the ultimate performance implementation of Qwen3-TTS. The core breakthroughs are the deep integration of **"Instruction-Driven"** synthesis and **"Zero-shot Custom Speakers (Cloning)"**. Leveraging Rust's memory safety and the efficient inference of llama.cpp/ONNX, it provides an industrial-grade text-to-speech solution. + +## 🚀 Core Features + +### 1. Extreme Performance & Streaming +- **Concurrent Streaming Decoding**: Uses a 4-frame (64 codes) granularity for concurrent decoding, determining first-token latency as low as 300ms for a "speech-while-thinking" experience. +- **Hardware Acceleration**: **Vulkan** (Windows/Linux) and **Metal** (macOS) acceleration are enabled by default, significantly boosting inference speed. +- **Automatic Runtime Management**: Zero-config environment; automatically downloads and configures `llama.cpp` (b7885) and `onnxruntime`, ready to use out of the box. + +### 2. Flexible Speaker Management +- **Auto-Scan & Cache**: Automatically loads voice files from the `speakers/` directory on startup. +- **Versatile Selection**: Supports flexible speaker selection via CLI arguments `--speaker ` or `--voice-file `. +- **Smart Fallback**: Automatically falls back to the default voice (vivian) if the specified speaker is not found, ensuring system stability. + +### 3. Precise Instruction Control +- **Instruction-Driven**: Supports embedding emotion tags like `[Happy]`, `[Sad]` in the text to adjust the delivery style in real-time. +- **EOS Alignment**: Perfectly aligned with Qwen3's stop logic, supporting multiple EOS token detections to prevent generation of trailing silence or artifacts. + +## 📊 Benchmarks + +| Backend | Model (GGUF) | RTF (Real-Time Factor) | Avg Time (ms) | Avg Audio (s) | Status | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **CUDA** | Q5_K_M | **0.553** | 1162.6 | 2.19 | OK | +| **Vulkan** | Q5_K_M | 0.598 | 1285.4 | 2.19 | OK | +| **CUDA** | Q8_0 | 0.640 | 1523.4 | 2.44 | OK | +| **Vulkan** | Q8_0 | 0.638 | 1502.0 | 2.44 | OK | +| **CPU** | Q5_K_M | 1.677 | 2823.4 | 1.96 | OK | +| **CPU** | Q8_0 | 1.866 | 4160.1 | 2.51 | OK | + +- **Test Environment**: Intel Core i9-13980HX, NVIDIA RTX 2080 Ti. VRAM Usage ~0.7-1.5GB. +- **Data Source**: Average of 10 generations on Windows. +- **Best Performance**: RTF 0.553 (CUDA + Q5KM), meaning 1 second of audio takes only 0.553 seconds to generate. + +## 🛠️ Quick Start + +### 1. Basic Generation +Generate speech using the default speaker: +```powershell +cargo run --bin qwen3_tts -- --text "Hello, welcome to use Qwen3-TTS Rust!" +``` + +### 2. Specify Speaker +Use a preset or custom speaker: +```powershell +# Use name (requires corresponding .json file in speakers/ directory) +cargo run --bin qwen3_tts -- --text "The weather is nice today." --speaker dylan + +# Use specific file path +cargo run --bin qwen3_tts -- --text "I am a custom voice." --voice-file "path/to/my_voice.json" +``` + +### 3. Clone New Voice +Clone a voice with just 3-10 seconds of reference audio: +```powershell +cargo run --bin qwen3_tts -- ` + --ref-audio "ref.wav" ` + --ref-text "The text content corresponding to the reference audio" ` + --save-voice "speakers/my_voice.json" ` + --text "New voice saved, you can use it directly now!" +``` + +### 4. Style/Emotion Control (Instruction) +Change the speaking style in real-time via the `--instruction` argument: +```powershell +# Sad tone +cargo run --bin qwen3_tts -- --text "I'm sorry, I didn't mean to..." --instruction "Sad and sobbing, very upset" + +# Happy tone +cargo run --bin qwen3_tts -- --text "Awesome! We did it!" --instruction "Happy and excited, slightly faster" +``` + +### 5. Advanced Configuration +```powershell +cargo run --bin qwen3_tts -- ` + --text "Long text generation test." ` + --max-steps 1024 ` # Adjust max generation length + --output "output.wav" # Specify output filename +``` + +### 6. Sampling Parameters +Control randomness and diversity of generation through sampling parameters: +```powershell +# Adjust temperature (higher = more random, 0.0 = greedy) +cargo run --bin qwen3_tts -- --text "Test text" --temperature 0.8 + +# Use fixed seed for reproducibility +cargo run --bin qwen3_tts -- --text "Test text" --seed 12345 + +# Full parameter example +cargo run --bin qwen3_tts -- ` + --text "Testing sampling parameters." ` + --temperature 0.7 ` # Temperature (default 0.7) + --top-k 40 ` # Top-K sampling (default 40) + --top-p 0.9 ` # Top-P nucleus sampling (default 0.9) + --seed 42 # Random seed (optional) +``` + +## 📂 Directory Structure + +The system automatically builds the following structure on first run: + +```text +. +├── models/ # Model files (GGUF, ONNX, Tokenizer) +├── runtime/ # Auto-downloaded dependencies (dll, so, dylib) +└── speakers/ # User custom voices +``` + +## 📜 License & Acknowledgements + +- Based on **MIT / Apache 2.0** license. +- Thanks to [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) official repository for models and technical foundation. +- Thanks to [Qwen3-TTS-GGUF](https://github.com/HaujetZhao/Qwen3-TTS-GGUF) for inspiration on the GGUF inference flow. diff --git a/docs/README_RU.md b/docs/README_RU.md new file mode 100644 index 0000000..d8b487e --- /dev/null +++ b/docs/README_RU.md @@ -0,0 +1,117 @@ +# Qwen3-TTS Rust + +[简体中文](../README.md) | [English](README_EN.md) | [日本語](README_JA.md) | [Korean](README_KO.md) | [Français](README_FR.md) | [Español](README_ES.md) | [Italiano](README_IT.md) | [Deutsch](README_DE.md) | [Русский](README_RU.md) | [Português](README_PT.md) + +This project is the ultimate performance implementation of Qwen3-TTS. The core breakthroughs are the deep integration of **"Instruction-Driven"** synthesis and **"Zero-shot Custom Speakers (Cloning)"**. Leveraging Rust's memory safety and the efficient inference of llama.cpp/ONNX, it provides an industrial-grade text-to-speech solution. + +## 🚀 Core Features + +### 1. Extreme Performance & Streaming +- **Concurrent Streaming Decoding**: Uses a 4-frame (64 codes) granularity for concurrent decoding, determining first-token latency as low as 300ms for a "speech-while-thinking" experience. +- **Hardware Acceleration**: **Vulkan** (Windows/Linux) and **Metal** (macOS) acceleration are enabled by default, significantly boosting inference speed. +- **Automatic Runtime Management**: Zero-config environment; automatically downloads and configures `llama.cpp` (b7885) and `onnxruntime`, ready to use out of the box. + +### 2. Flexible Speaker Management +- **Auto-Scan & Cache**: Automatically loads voice files from the `speakers/` directory on startup. +- **Versatile Selection**: Supports flexible speaker selection via CLI arguments `--speaker ` or `--voice-file `. +- **Smart Fallback**: Automatically falls back to the default voice (vivian) if the specified speaker is not found, ensuring system stability. + +### 3. Precise Instruction Control +- **Instruction-Driven**: Supports embedding emotion tags like `[Happy]`, `[Sad]` in the text to adjust the delivery style in real-time. +- **EOS Alignment**: Perfectly aligned with Qwen3's stop logic, supporting multiple EOS token detections to prevent generation of trailing silence or artifacts. + +## 📊 Benchmarks + +| Backend | Model (GGUF) | RTF (Real-Time Factor) | Avg Time (ms) | Avg Audio (s) | Status | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **CUDA** | Q5_K_M | **0.553** | 1162.6 | 2.19 | OK | +| **Vulkan** | Q5_K_M | 0.598 | 1285.4 | 2.19 | OK | +| **CUDA** | Q8_0 | 0.640 | 1523.4 | 2.44 | OK | +| **Vulkan** | Q8_0 | 0.638 | 1502.0 | 2.44 | OK | +| **CPU** | Q5_K_M | 1.677 | 2823.4 | 1.96 | OK | +| **CPU** | Q8_0 | 1.866 | 4160.1 | 2.51 | OK | + +- **Test Environment**: Intel Core i9-13980HX, NVIDIA RTX 2080 Ti. VRAM Usage ~0.7-1.5GB. +- **Data Source**: Average of 10 generations on Windows. +- **Best Performance**: RTF 0.553 (CUDA + Q5KM), meaning 1 second of audio takes only 0.553 seconds to generate. + +## 🛠️ Quick Start + +### 1. Basic Generation +Generate speech using the default speaker: +```powershell +cargo run --bin qwen3_tts -- --text "Hello, welcome to use Qwen3-TTS Rust!" +``` + +### 2. Specify Speaker +Use a preset or custom speaker: +```powershell +# Use name (requires corresponding .json file in speakers/ directory) +cargo run --bin qwen3_tts -- --text "The weather is nice today." --speaker dylan + +# Use specific file path +cargo run --bin qwen3_tts -- --text "I am a custom voice." --voice-file "path/to/my_voice.json" +``` + +### 3. Clone New Voice +Clone a voice with just 3-10 seconds of reference audio: +```powershell +cargo run --bin qwen3_tts -- ` + --ref-audio "ref.wav" ` + --ref-text "The text content corresponding to the reference audio" ` + --save-voice "speakers/my_voice.json" ` + --text "New voice saved, you can use it directly now!" +``` + +### 4. Style/Emotion Control (Instruction) +Change the speaking style in real-time via the `--instruction` argument: +```powershell +# Sad tone +cargo run --bin qwen3_tts -- --text "I'm sorry, I didn't mean to..." --instruction "Sad and sobbing, very upset" + +# Happy tone +cargo run --bin qwen3_tts -- --text "Awesome! We did it!" --instruction "Happy and excited, slightly faster" +``` + +### 5. Advanced Configuration +```powershell +cargo run --bin qwen3_tts -- ` + --text "Long text generation test." ` + --max-steps 1024 ` # Adjust max generation length + --output "output.wav" # Specify output filename +``` + +### 6. Sampling Parameters +Control randomness and diversity of generation through sampling parameters: +```powershell +# Adjust temperature (higher = more random, 0.0 = greedy) +cargo run --bin qwen3_tts -- --text "Test text" --temperature 0.8 + +# Use fixed seed for reproducibility +cargo run --bin qwen3_tts -- --text "Test text" --seed 12345 + +# Full parameter example +cargo run --bin qwen3_tts -- ` + --text "Testing sampling parameters." ` + --temperature 0.7 ` # Temperature (default 0.7) + --top-k 40 ` # Top-K sampling (default 40) + --top-p 0.9 ` # Top-P nucleus sampling (default 0.9) + --seed 42 # Random seed (optional) +``` + +## 📂 Directory Structure + +The system automatically builds the following structure on first run: + +```text +. +├── models/ # Model files (GGUF, ONNX, Tokenizer) +├── runtime/ # Auto-downloaded dependencies (dll, so, dylib) +└── speakers/ # User custom voices +``` + +## 📜 License & Acknowledgements + +- Based on **MIT / Apache 2.0** license. +- Thanks to [Qwen3-TTS](https://github.com/QwenLM/Qwen3-TTS) official repository for models and technical foundation. +- Thanks to [Qwen3-TTS-GGUF](https://github.com/HaujetZhao/Qwen3-TTS-GGUF) for inspiration on the GGUF inference flow. diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..eec7534 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1779560665, + "narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..1c4bf2b --- /dev/null +++ b/flake.nix @@ -0,0 +1,59 @@ +{ + description = "A Nix-flake-based Rust development environment"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + utils.url = "github:numtide/flake-utils"; + }; + + outputs = + { + self, + nixpkgs, + utils, + }: + utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShells.default = pkgs.mkShell { + # 编译工具 + nativeBuildInputs = with pkgs; [ + pkg-config + rustc + cargo + cargo-watch + cargo-edit + cargo-outdated + + ]; + + # 运行时动态链接库 + buildInputs = with pkgs; [ + openssl + alsa-lib + onnxruntime # <- 新增:NixOS 官方封装的 ONNX Runtime + ]; + + shellHook = '' + # 1. 告诉 ort 库:我已经有系统级的 onnxruntime 了,不要去在线下载 + export ORT_STRATEGY="system" + + # 2. 让 rust-analyzer / rustc 能找到标准库源码 + export RUST_SRC_PATH="${pkgs.rustPlatform.rustLibSrc}" + + # 3. 指定 onnxruntime 的动态库和头文件路径(供编译时链接) + export ORT_LIB_DIR="${pkgs.onnxruntime}/lib" + export ORT_INCLUDE_DIR="${pkgs.onnxruntime}/include" + + # 4. 运行时让程序能通过 LD_LIBRARY_PATH 找到 .so 文件 + export LD_LIBRARY_PATH="${pkgs.onnxruntime}/lib:${pkgs.openssl}/lib:${pkgs.alsa-lib}/lib:$LD_LIBRARY_PATH" + + echo "🦀 Rust + ALSA + ONNX 环境已就绪!" + ''; + }; + } + ); +} diff --git a/pr_body.md b/pr_body.md new file mode 100644 index 0000000..9d4d65d --- /dev/null +++ b/pr_body.md @@ -0,0 +1,38 @@ +## Summary + +修复音频生成断续、缺失问题 (Issue #2) + +### 修改内容 + +1. **随机种子问题修复** + - 将固定的随机种子 `12345` 改为动态生成(使用系统时间 + 熵源) + - 支持用户通过 CLI 参数 `--seed` 指定种子以实现可复现性 + +2. **解码器边界处理修复** + - 将 codes 截断为 16 的倍数(一帧 = 16 个 codes) + - 使用 `clamp(0, 2047)` 替代 `min(2047)` 确保值在有效范围内 + - 保留未满一帧的剩余 codes 供下次迭代处理 + +3. **采样参数暴露** + - 新增 `SamplerConfig` 结构体 + - CLI 新增参数:`--temperature`, `--top_k`, `--top_p`, `--seed` + - 支持运行时调整采样策略 + +4. **代码质量** + - 修复所有 clippy 警告 + - 消除编译警告 + +### 测试建议 + +```bash +# 使用默认参数 +.\qwen3_tts.exe --text "测试文本" --output "test.wav" --speaker sohee + +# 调整温度(更高温度 = 更随机) +.\qwen3_tts.exe --text "测试文本" --output "test.wav" --speaker sohee --temperature 0.7 + +# 使用固定种子复现结果 +.\qwen3_tts.exe --text "测试文本" --output "test.wav" --speaker sohee --seed 12345 +``` + +Closes #2 diff --git a/speakers/aiden.json b/speakers/aiden.json new file mode 100644 index 0000000..6087844 --- /dev/null +++ b/speakers/aiden.json @@ -0,0 +1,2055 @@ +{ + "name": "aiden", + "description": "male_young", + "spk_id": 2861, + "spk_emb": [ + -0.10839844, + 0.017944336, + 0.15332031, + 0.12890625, + 0.045410156, + -0.051513672, + -0.0037384033, + -3.71875, + 0.030273438, + -0.028564453, + -0.1171875, + 0.14746094, + -0.076660156, + -0.0703125, + -0.19921875, + 0.104003906, + -0.0625, + 0.08886719, + 0.018432617, + 0.16015625, + 0.041503906, + -0.060058594, + -0.15429688, + 0.024658203, + 0.0024719238, + 0.06640625, + 0.05053711, + -0.010681152, + -0.114746094, + 0.12597656, + 0.053710938, + -0.103027344, + 0.04345703, + -0.17871094, + 0.107910156, + -0.14160156, + 0.016601562, + 0.032226562, + 0.05883789, + -0.024047852, + 0.052978516, + -0.43164062, + -0.03125, + 0.115234375, + -0.122558594, + 0.036376953, + 0.041259766, + 0.007598877, + 0.0063476562, + 0.013977051, + 0.14257812, + -0.0099487305, + 0.03930664, + -0.031982422, + -0.030151367, + -0.029907227, + -0.046142578, + 0.08496094, + -0.022827148, + -0.029663086, + 0.14257812, + 0.067871094, + 0.119140625, + -0.083984375, + 0.10107422, + 0.17285156, + -0.0031585693, + -0.0051574707, + -0.072265625, + 0.3671875, + 0.091308594, + 0.02758789, + 0.04711914, + -0.012451172, + -0.0546875, + -0.09716797, + -0.11425781, + -0.20507812, + 0.16601562, + -0.017089844, + 0.023803711, + -0.095703125, + 0.08105469, + -0.08544922, + 0.01928711, + -0.0859375, + -0.006958008, + 0.033691406, + -0.16699219, + -0.0390625, + 0.009643555, + 0.032958984, + 0.004760742, + 0.033935547, + 0.044921875, + 0.11816406, + -0.049316406, + -0.020996094, + -0.028808594, + 0.051757812, + 0.03540039, + -0.02319336, + 0.23730469, + -0.036376953, + -0.03515625, + 0.018066406, + -0.024902344, + -0.0005378723, + 0.017578125, + -0.08300781, + -0.033203125, + -0.05810547, + 0.084472656, + -0.08300781, + -0.12158203, + 0.051513672, + -0.08935547, + -0.030273438, + 0.01184082, + -0.043945312, + 0.03466797, + 0.08251953, + 0.010559082, + 0.09765625, + -0.10986328, + -0.068359375, + -0.08984375, + 0.0066223145, + 0.0703125, + 0.09423828, + 0.039794922, + 0.11669922, + 0.06225586, + 0.076660156, + -0.06201172, + -0.09326172, + 0.043701172, + 0.004547119, + 0.016357422, + -0.17578125, + 0.10205078, + 0.10644531, + 0.13867188, + -0.018066406, + 0.038085938, + 0.24316406, + -0.08203125, + 0.083496094, + 0.171875, + 0.1953125, + 0.05908203, + 0.025390625, + 0.27148438, + -0.05810547, + -0.15332031, + -0.02355957, + -0.13671875, + 0.13964844, + 0.10986328, + 0.08203125, + -0.114746094, + -0.035888672, + 0.12792969, + -0.0074768066, + 0.004058838, + -0.055419922, + -3.953125, + -0.1796875, + 0.03857422, + 0.030395508, + 0.07861328, + 0.012268066, + -0.01928711, + -0.008850098, + -0.119628906, + 0.060302734, + 0.16308594, + 0.0025939941, + -0.055664062, + 0.13671875, + -0.0003490448, + 0.375, + 0.053466797, + -0.043701172, + -0.036376953, + -0.02734375, + 0.059570312, + 0.0058898926, + -0.037841797, + 0.011047363, + 0.115234375, + -0.13867188, + -0.0043945312, + 0.09423828, + -0.009460449, + 0.080078125, + -0.045898438, + -0.12695312, + -0.026611328, + 0.0056152344, + 0.107910156, + 0.08251953, + -0.016479492, + -0.13867188, + 0.091308594, + 0.12060547, + 0.052734375, + 0.010375977, + -0.057373047, + -0.59765625, + 0.033691406, + -0.049804688, + 0.0703125, + 0.045166016, + -0.040039062, + -0.08642578, + 0.08105469, + 0.055664062, + 0.123535156, + 0.079589844, + -0.15722656, + 0.071777344, + -0.014343262, + -0.026733398, + -0.032958984, + 0.27148438, + -0.07470703, + 0.018798828, + 0.13671875, + -0.14257812, + -0.083496094, + -0.12695312, + 0.09423828, + -0.063964844, + -0.08203125, + -0.17480469, + -0.092285156, + -0.022705078, + -0.104003906, + 0.033935547, + 0.0234375, + 0.067871094, + 0.09667969, + 0.13183594, + -0.012451172, + -0.072265625, + 0.09326172, + 0.044189453, + 0.06298828, + -0.0007019043, + 0.08203125, + -0.053222656, + -0.05883789, + 0.044921875, + -0.18066406, + -0.068359375, + 0.06982422, + -0.0023498535, + 0.064453125, + 0.12792969, + 0.02734375, + 0.067871094, + -0.022338867, + 0.018554688, + -0.068847656, + -0.0066223145, + -0.00045013428, + 0.03930664, + 0.08154297, + -0.0038604736, + -0.15625, + 0.114746094, + 0.35742188, + -0.052490234, + -0.025268555, + -0.045898438, + 0.006713867, + 0.100097656, + 0.01977539, + 0.14257812, + -0.012573242, + 0.014404297, + 0.32226562, + -0.051757812, + -0.16308594, + -0.024658203, + 0.140625, + -0.6015625, + 0.029296875, + 0.111816406, + -0.1953125, + -0.06640625, + -0.053710938, + 0.014282227, + -0.07519531, + 0.014038086, + 0.040771484, + -0.020996094, + 0.014343262, + -0.09814453, + 0.16210938, + 0.031982422, + 0.05810547, + 0.035888672, + -0.18554688, + -0.111816406, + -0.063964844, + -0.19433594, + 0.11328125, + 0.17382812, + 0.015380859, + 0.037597656, + 0.099609375, + -0.063964844, + -0.034423828, + 0.013183594, + 0.011962891, + 0.20019531, + 0.028442383, + 0.53515625, + 0.079589844, + 0.038085938, + 0.045166016, + 0.39257812, + -0.12597656, + 0.11035156, + -0.043945312, + -0.0018920898, + 0.061279297, + -0.20019531, + -0.16210938, + -0.16699219, + 0.041503906, + 0.09033203, + 0.1796875, + 0.00065231323, + 0.053710938, + 0.017089844, + 0.04663086, + -0.030151367, + 0.07080078, + -0.09716797, + 0.22753906, + 0.10498047, + -0.10205078, + 0.06201172, + 0.17773438, + 0.15429688, + -0.027832031, + -0.12597656, + 0.1796875, + 0.05810547, + 0.08544922, + -0.06591797, + 0.234375, + -0.063964844, + 0.12890625, + -0.25195312, + -0.052246094, + -0.20898438, + -0.11035156, + -0.03540039, + 0.11328125, + 0.11767578, + 0.08251953, + 0.03515625, + 0.063964844, + 0.049072266, + 0.12792969, + -0.10644531, + 0.012390137, + 0.125, + -0.015625, + 0.14257812, + -0.007873535, + 0.08300781, + 0.04345703, + -0.10107422, + -0.16210938, + 0.075683594, + -0.07421875, + 0.13867188, + -0.0068359375, + -0.0065307617, + -0.115722656, + 0.018676758, + -0.16796875, + -0.071777344, + 0.03515625, + 0.032714844, + 0.0027618408, + 0.008544922, + 0.045410156, + -0.14648438, + 0.020874023, + -0.045654297, + -0.09082031, + -0.10546875, + -0.091308594, + 0.0859375, + 0.09863281, + -0.15820312, + 0.004180908, + 0.05493164, + -0.140625, + 0.18847656, + -0.013122559, + -0.0008163452, + -0.0095825195, + -0.076660156, + 0.103027344, + 0.16210938, + -0.05078125, + 0.01574707, + 0.02758789, + -0.052734375, + -0.045410156, + 0.06542969, + -0.115234375, + -0.013122559, + -0.07080078, + 0.002319336, + 0.0055236816, + -0.028320312, + 0.053955078, + 0.34375, + 0.060546875, + 0.0011978149, + -0.03564453, + -0.10253906, + 0.015380859, + -0.111816406, + 0.12451172, + -0.0014343262, + 0.118652344, + -0.013366699, + 0.12060547, + -0.33007812, + 0.019165039, + 0.03491211, + -0.0119018555, + -0.09423828, + 0.00039482117, + -0.028930664, + -0.044677734, + 0.008300781, + -0.036376953, + 0.053955078, + 0.022216797, + 0.060058594, + -0.051757812, + -0.14941406, + -0.16308594, + -0.083496094, + -0.0045776367, + -0.09082031, + 0.083984375, + -0.03491211, + -0.021850586, + -0.16992188, + -0.05029297, + 0.059570312, + -0.07519531, + 0.328125, + 0.08154297, + -0.07421875, + -0.045654297, + 0.03173828, + -0.05078125, + 0.08251953, + 0.13085938, + -0.111816406, + 0.12988281, + -0.115722656, + -0.088378906, + -0.0390625, + 0.11767578, + -0.3046875, + 0.17773438, + -0.055664062, + 0.18945312, + -0.056396484, + -0.044677734, + 0.12597656, + 0.05029297, + -0.08544922, + 0.08642578, + 0.023925781, + -0.03540039, + -0.023925781, + 0.008544922, + 0.08154297, + -0.016479492, + 0.123046875, + -0.08544922, + 0.060058594, + -0.013977051, + -0.118652344, + 0.05102539, + -0.43164062, + -0.19628906, + 0.07324219, + -0.16308594, + 0.23242188, + 0.10058594, + -0.022705078, + 0.13085938, + 0.12109375, + 0.06982422, + -0.014282227, + 0.13476562, + -0.013000488, + 0.14941406, + 0.080078125, + -0.087402344, + -0.13574219, + 0.12988281, + -0.068359375, + -0.042236328, + -0.016235352, + -0.008911133, + -0.07763672, + -0.01159668, + -0.08886719, + 0.12890625, + 0.075683594, + -0.056152344, + -0.099121094, + 0.036132812, + -0.095214844, + -0.10498047, + -0.12988281, + 0.038085938, + -0.03857422, + -0.16699219, + -0.0047912598, + -0.045654297, + -0.028808594, + -0.068847656, + 0.00005698204, + 0.028930664, + -0.18652344, + 0.037353516, + 0.15625, + 0.026367188, + 0.044189453, + 0.06738281, + -0.099121094, + 0.013305664, + -0.05029297, + -0.076171875, + -0.095703125, + 0.15332031, + -0.044677734, + -0.042236328, + -0.06591797, + 0.011779785, + 0.064941406, + -0.05810547, + 0.003692627, + 0.17578125, + 0.034423828, + 0.25976562, + -0.1015625, + 0.048828125, + 0.13769531, + 0.020263672, + 0.1015625, + -0.10986328, + 0.107910156, + -0.15136719, + -0.09326172, + 0.07324219, + -0.13769531, + 0.010070801, + -0.08886719, + -0.111816406, + -0.111328125, + 0.018066406, + -0.019042969, + 0.07080078, + 0.053222656, + -0.0390625, + 0.04663086, + -0.20117188, + 0.0055236816, + 0.012817383, + 0.09814453, + -0.14941406, + -0.033691406, + 0.029663086, + -0.075683594, + -0.07763672, + 0.07519531, + 0.072265625, + 0.08105469, + 0.13769531, + 0.043945312, + 0.19140625, + 0.04345703, + 0.036621094, + 0.049316406, + -0.14648438, + -0.114746094, + 0.10546875, + -0.10644531, + 0.02368164, + -0.140625, + 0.1796875, + 0.032958984, + 0.010559082, + -0.056884766, + 0.03857422, + -0.15332031, + -0.18261719, + -0.02746582, + -0.015014648, + -0.04345703, + -0.033203125, + -0.044189453, + 0.18457031, + -0.06298828, + -0.07470703, + 0.07861328, + 0.14160156, + 0.13574219, + 0.1875, + -0.02319336, + 0.043701172, + -0.06933594, + -0.10986328, + 0.03540039, + -0.045898438, + -0.061767578, + -0.083496094, + -0.06738281, + 0.07324219, + -0.04638672, + 0.07421875, + -0.024047852, + -0.050048828, + -0.08203125, + -0.07910156, + -0.072753906, + -0.296875, + 0.140625, + 0.007751465, + -0.07519531, + -0.103027344, + 0.19433594, + 0.019165039, + -0.067871094, + 0.017700195, + -0.011657715, + -0.026123047, + -0.02319336, + 0.061279297, + -0.103027344, + -0.71484375, + 0.06982422, + 0.00090408325, + -0.14355469, + -0.07421875, + 0.06982422, + 0.060546875, + 0.046142578, + -0.024658203, + 0.12597656, + -0.059814453, + -0.18652344, + -0.18652344, + -0.0057678223, + 0.15527344, + -0.036132812, + 0.080566406, + -0.010803223, + 0.0067443848, + 0.03173828, + -0.11230469, + 0.059326172, + 0.10839844, + 0.08105469, + -0.055908203, + -0.17871094, + -0.05444336, + -0.0138549805, + -0.084472656, + -0.080566406, + 0.02722168, + -0.095214844, + 0.036132812, + -0.09667969, + -0.095214844, + -0.09082031, + -0.08300781, + -0.16015625, + 0.04345703, + -0.07421875, + -0.083984375, + 0.0859375, + -0.07910156, + -0.052490234, + 0.18847656, + 0.0061035156, + -0.06201172, + -0.07470703, + 0.12597656, + -0.15527344, + -0.067871094, + 0.072753906, + -0.20605469, + 0.16601562, + -0.0069885254, + 0.2421875, + -0.052246094, + -0.056884766, + -0.071777344, + -0.016479492, + 0.19824219, + 0.20507812, + -0.107421875, + 0.048828125, + 0.037109375, + 0.15039062, + -0.019897461, + -0.025024414, + 0.099121094, + 0.36914062, + 0.0040283203, + -0.032226562, + -0.0021972656, + 0.025512695, + 0.044921875, + 0.011657715, + -0.010070801, + -0.044921875, + 0.075683594, + 0.0047302246, + 0.109375, + 0.08935547, + -0.10888672, + 0.033935547, + 0.0027770996, + 0.11376953, + 0.060058594, + 0.111816406, + -0.052978516, + -0.035888672, + 0.037841797, + 0.09326172, + 0.0038604736, + 0.08886719, + -0.06225586, + -0.12402344, + -0.03149414, + -0.028564453, + 0.05517578, + -0.03491211, + -0.022583008, + 0.021850586, + 0.004211426, + 0.011962891, + -0.10449219, + 0.0066833496, + -0.06591797, + -0.060302734, + 0.018920898, + -0.08300781, + 0.05834961, + 0.01940918, + -0.008605957, + -0.09814453, + 0.049560547, + 0.020141602, + 0.107910156, + -0.17382812, + -0.11230469, + -0.07910156, + -0.107421875, + 0.036865234, + -0.022338867, + -0.05908203, + -0.0018081665, + -0.024780273, + 0.03955078, + 0.045898438, + -0.036621094, + -0.013000488, + -0.0036468506, + 0.084472656, + -0.107421875, + -0.049316406, + -0.08203125, + 0.02758789, + 0.115722656, + 0.18554688, + -0.014709473, + 0.13085938, + 0.01361084, + 0.080566406, + 0.013061523, + 0.03857422, + -0.067871094, + -0.118652344, + -0.123535156, + -0.048095703, + -0.035888672, + 0.07861328, + 0.09277344, + 0.024902344, + 0.06982422, + -0.15625, + 0.045166016, + 0.059570312, + -0.09814453, + -0.15917969, + -0.125, + -0.053466797, + -0.119628906, + 0.010864258, + 0.19335938, + -0.33398438, + -0.028808594, + -0.25, + -0.036865234, + -0.123046875, + -0.07128906, + 0.07910156, + -0.061523438, + 0.047851562, + -0.036865234, + -0.09863281, + 0.005706787, + 0.10546875, + -0.0073547363, + 0.021972656, + -0.125, + -0.040039062, + -0.084472656, + 0.19140625, + -0.08886719, + 0.07128906, + 0.16699219, + 0.08251953, + 0.22363281, + 0.014526367, + 0.0032958984, + -0.0026397705, + 0.09472656, + 0.23046875, + 0.33007812, + 0.75390625, + -0.019165039, + 0.018066406, + 0.08886719, + -0.004333496, + -0.034179688, + 0.07373047, + -0.13671875, + 0.083496094, + 0.33203125, + -0.036376953, + -0.099609375, + 0.10986328, + -0.028442383, + 0.08300781, + 0.056640625, + 0.11767578, + -0.18066406, + -0.07861328, + 0.0058898926, + -0.15039062, + 0.06347656, + 0.10644531, + -0.052490234, + -0.044433594, + 0.048095703, + 0.08886719, + -0.041503906, + 0.016235352, + -0.02734375, + 0.3359375, + -0.14160156, + 0.12451172, + -0.08984375, + -0.03540039, + 0.06689453, + 0.048583984, + -0.13085938, + 0.13769531, + -0.09814453, + 0.07128906, + -0.040527344, + -0.0048828125, + -0.13085938, + -0.08886719, + -0.072265625, + -0.13769531, + -0.05444336, + -0.087890625, + -0.13671875, + 0.06591797, + -0.10888672, + -0.005584717, + -0.053955078, + -0.14257812, + 0.07519531, + -0.0076293945, + -0.13671875, + 0.119628906, + -0.17382812, + -0.06738281, + 0.043701172, + -0.064941406, + -0.16113281, + 0.17089844, + -0.15332031, + -0.11376953, + 0.671875, + -0.07910156, + -0.118652344, + -0.028930664, + 0.0095825195, + 0.032958984, + 0.04736328, + -0.0054016113, + 0.08544922, + 0.011169434, + -0.034179688, + 0.10107422, + -0.037353516, + -0.09667969, + -0.075683594, + -0.06933594, + 0.10253906, + 0.14355469, + -0.04321289, + 0.041992188, + 0.046875, + 0.056640625, + -0.026245117, + -0.013061523, + -0.07421875, + 0.06225586, + 0.087402344, + -0.08105469, + -0.234375, + -0.052001953, + -0.037841797, + 0.08984375, + -0.047851562, + -0.08154297, + -0.12792969, + 0.14746094, + 0.20507812, + 0.049560547, + -0.063964844, + -0.091308594, + -0.06591797, + 0.29296875, + -0.09033203, + 0.025634766, + -0.005645752, + 0.09375, + 0.17480469, + 0.115234375, + -0.045166016, + -0.06542969, + 0.060791016, + -0.0703125, + 0.003479004, + -0.017700195, + -0.05102539, + -0.028808594, + 0.044677734, + -0.04711914, + -0.18652344, + 0.0625, + 0.15136719, + -0.030395508, + -0.02746582, + 0.037353516, + -0.017700195, + -0.115234375, + -0.26171875, + -0.03466797, + 0.06347656, + 0.20214844, + -0.087402344, + 0.027832031, + 0.08105469, + -0.025512695, + 0.076171875, + 0.013977051, + -0.045654297, + -0.056152344, + -0.115234375, + 0.13574219, + 0.02746582, + 0.10888672, + -0.17285156, + -0.0043029785, + -0.007751465, + 0.16503906, + -0.041992188, + -0.08251953, + -0.06542969, + -0.0154418945, + 0.33007812, + 0.041015625, + -0.12109375, + 0.0042419434, + 0.009216309, + 0.06689453, + -0.12890625, + 0.016845703, + 0.028564453, + 0.25, + -0.028686523, + 0.11621094, + -0.049316406, + -0.032714844, + 0.025146484, + 0.067871094, + 0.10253906, + 0.06640625, + 0.0021514893, + 0.16503906, + 0.055664062, + 0.03857422, + 0.107910156, + -0.11425781, + 0.0018692017, + 0.06738281, + -0.18847656, + -0.12792969, + -0.04663086, + -0.0036315918, + 0.076660156, + -0.47070312, + -0.0138549805, + 0.034179688, + 0.087890625, + 0.03149414, + 0.010131836, + 0.040039062, + -0.13378906, + 0.013977051, + -0.053222656, + 0.09423828, + -0.049560547, + 0.12695312, + 0.034423828, + 0.109375, + -0.043945312, + -0.029663086, + 0.087890625, + 0.110839844, + -0.014770508, + 0.25390625, + 0.10888672, + -0.18554688, + -0.026000977, + 0.05126953, + -0.0859375, + -0.107910156, + 0.12890625, + 0.08935547, + -0.05493164, + 0.049316406, + -0.44140625, + -0.037109375, + -0.083984375, + -0.040527344, + 0.0001077652, + -0.16601562, + 0.041748047, + 0.45703125, + 0.053955078, + 0.2109375, + 0.09375, + -0.088378906, + 0.38867188, + -0.05859375, + 0.19433594, + -0.2734375, + 0.07470703, + -0.15429688, + -0.004699707, + -0.027709961, + -0.03125, + -0.07470703, + -0.046142578, + 0.06201172, + -0.106933594, + -0.16992188, + -0.092285156, + 0.01977539, + 0.024047852, + 0.0038604736, + -0.23828125, + 0.036376953, + 0.05517578, + 0.234375, + 0.21679688, + 0.4453125, + 0.07861328, + -0.07470703, + 0.030273438, + -0.057373047, + 0.07910156, + 0.0057373047, + -0.014038086, + 0.11328125, + 0.033935547, + -0.038330078, + -0.047607422, + 0.076171875, + 0.05517578, + 0.027832031, + -0.025024414, + -0.007446289, + 0.0029144287, + -0.052734375, + 0.039794922, + -0.034179688, + -0.119628906, + -0.05078125, + -0.037597656, + -0.012451172, + 0.041748047, + 0.029785156, + -0.09033203, + -0.018676758, + -0.028076172, + 0.03466797, + 0.140625, + -0.08691406, + 0.095703125, + -0.16601562, + 0.053955078, + 0.053222656, + 0.051757812, + 0.063964844, + -0.09667969, + -0.067871094, + -0.15917969, + 0.11279297, + 0.07080078, + -0.19726562, + 0.13085938, + 0.25, + 0.033935547, + -0.09082031, + -0.091796875, + -0.099609375, + 0.106933594, + 0.24121094, + -0.039794922, + -0.071777344, + -0.043701172, + -0.032226562, + 0.020751953, + -0.13574219, + -0.18066406, + 0.16210938, + -0.15332031, + 0.11767578, + 0.007507324, + -0.15527344, + 0.10058594, + -0.076660156, + 0.020507812, + -0.044189453, + -0.05029297, + -0.06591797, + -0.31054688, + 0.0079956055, + 0.0037994385, + 0.05419922, + -0.05444336, + 0.08496094, + 0.010009766, + 0.16210938, + -0.018554688, + 0.08642578, + 0.05908203, + 0.08251953, + 0.026977539, + 0.022583008, + -0.044921875, + 0.028564453, + 0.048828125, + -0.055664062, + -0.018676758, + 0.10644531, + 0.00970459, + 0.038085938, + 0.041259766, + 0.04663086, + -0.16308594, + -0.0010528564, + 0.041748047, + -0.15136719, + -0.013183594, + -0.030029297, + 0.043945312, + -0.03955078, + 0.016357422, + 0.13769531, + 0.11425781, + -0.16308594, + 0.010681152, + 0.0028076172, + 0.064453125, + 0.083496094, + -0.009155273, + -0.10253906, + -0.106933594, + -0.038085938, + 0.068359375, + -0.0027923584, + -0.014526367, + 0.05517578, + 0.040771484, + 0.014465332, + -0.22851562, + -0.1875, + 0.080566406, + 0.03564453, + -0.064941406, + -0.48632812, + -0.021240234, + -0.12597656, + 0.021606445, + 0.0703125, + 0.08544922, + -0.08300781, + -0.079589844, + -0.0049743652, + -0.036621094, + -0.17675781, + 0.111328125, + -0.13476562, + 0.00491333, + 0.02746582, + 0.09814453, + 0.060302734, + -0.32226562, + 0.16210938, + -0.09814453, + 0.05126953, + 0.07861328, + -0.071777344, + -0.01940918, + -0.02319336, + 0.083496094, + -0.026367188, + -0.0053100586, + -0.032470703, + 0.20800781, + 0.13769531, + 0.012084961, + -0.08154297, + 0.09326172, + 0.106933594, + -0.036621094, + -0.04248047, + 0.10595703, + 0.0703125, + -0.17285156, + 0.048583984, + 0.13378906, + -0.006225586, + -0.15234375, + 0.005584717, + 0.01965332, + 0.009277344, + 0.13769531, + -0.033203125, + 0.049560547, + -0.14550781, + -0.06225586, + 0.06298828, + 0.068847656, + 0.055908203, + -0.024169922, + 0.09716797, + -0.00680542, + 0.05883789, + -0.031982422, + -0.016967773, + 0.04663086, + -0.076660156, + -0.13183594, + 0.029296875, + -0.007171631, + -0.03515625, + 0.08544922, + 0.03564453, + -0.044189453, + -0.11279297, + -0.06982422, + 0.0107421875, + -0.048095703, + 0.12695312, + 0.080078125, + -0.009155273, + -0.43164062, + -0.0031433105, + -0.061767578, + 0.114746094, + 0.03955078, + 0.2578125, + 0.044433594, + -0.11279297, + -0.038085938, + -0.37890625, + 0.115722656, + 0.10449219, + -0.028442383, + 0.049560547, + -0.24804688, + 0.09033203, + -0.13183594, + -0.12207031, + 0.06542969, + 0.13769531, + -0.0052490234, + 0.12988281, + 0.016601562, + -0.08544922, + 0.10205078, + -0.04736328, + 0.06225586, + 0.02709961, + -0.055908203, + -0.0154418945, + 0.033447266, + -0.055908203, + 0.060058594, + 0.07861328, + -0.049316406, + 0.044677734, + -0.15039062, + 0.19335938, + 0.02368164, + -0.02758789, + 0.022460938, + -0.53125, + -0.095703125, + -0.25390625, + -0.041259766, + 0.02734375, + 0.044677734, + -0.06542969, + -0.09277344, + 0.003479004, + -0.034423828, + 0.033203125, + -0.029052734, + -0.055419922, + 0.037597656, + 0.019897461, + -0.0066223145, + 0.12890625, + -0.049072266, + 0.016113281, + 0.0066223145, + -0.021606445, + -0.11279297, + 0.018676758, + 0.10498047, + -0.006225586, + 0.083496094, + 0.056640625, + 0.123046875, + -0.041992188, + 0.030273438, + -0.036132812, + 0.30859375, + -0.23144531, + 0.19140625, + 0.033935547, + 0.001449585, + -0.06298828, + -0.1484375, + -0.28515625, + -0.18261719, + -0.012756348, + -0.103515625, + 0.08642578, + 0.072753906, + 0.012084961, + -0.078125, + 0.035888672, + 0.0126953125, + 0.047607422, + 0.046875, + -0.08496094, + -0.16015625, + 2.265625, + 0.03491211, + -0.046875, + -0.025634766, + -0.07128906, + 0.091308594, + -0.046875, + 0.087402344, + -0.09472656, + 0.004486084, + -0.011108398, + 0.031982422, + -0.088378906, + 0.096191406, + 0.057128906, + -0.020629883, + 0.016845703, + 0.10839844, + 0.0022735596, + 0.43359375, + -0.031982422, + 0.12695312, + -0.16308594, + 0.23046875, + -0.12011719, + 0.011413574, + 0.026855469, + 0.040527344, + -0.068847656, + 0.06982422, + 0.06933594, + -0.03100586, + 0.0115356445, + -0.08300781, + -0.024902344, + 0.07910156, + 0.060791016, + -0.010559082, + 0.08105469, + 0.017089844, + -0.13574219, + -0.01953125, + 0.052978516, + -0.026733398, + -0.07519531, + 0.099121094, + -0.007507324, + 0.0028533936, + 0.08251953, + 0.0021514893, + -0.037109375, + 0.08691406, + -0.041015625, + -0.21875, + 0.18066406, + 0.026977539, + 0.041748047, + -0.07421875, + -0.03100586, + 0.15332031, + 0.095703125, + -0.049072266, + 0.011657715, + -0.1640625, + -0.05493164, + 0.21875, + 0.17675781, + -0.05810547, + 0.17285156, + -0.025756836, + 0.099609375, + 0.039794922, + -0.052978516, + -0.071777344, + -0.08300781, + 0.06542969, + 0.005126953, + 0.1484375, + 0.20214844, + -0.03540039, + 0.071777344, + 0.06298828, + 0.104003906, + -0.02319336, + 0.16015625, + 0.19140625, + 0.265625, + 0.08642578, + 0.05444336, + 0.12988281, + -0.13574219, + 0.026489258, + 0.14453125, + -0.23535156, + -0.23632812, + 0.0038604736, + 0.34765625, + 0.061035156, + -0.296875, + -0.040039062, + 0.05493164, + -0.0859375, + 0.008605957, + -0.13867188, + -0.026855469, + -0.18359375, + 0.14160156, + 0.119140625, + -0.19433594, + -0.032226562, + 0.021972656, + -0.07519531, + -0.028076172, + 0.75, + 0.061035156, + 0.04711914, + -0.104003906, + 0.15527344, + -0.060546875, + 0.075683594, + 0.13574219, + -0.12158203, + 0.12109375, + -0.1171875, + 0.09423828, + 0.091796875, + -0.14746094, + -0.009399414, + 0.1875, + 0.078125, + -0.08496094, + -0.13574219, + -0.07910156, + -0.025146484, + -0.07128906, + -0.24414062, + 0.05493164, + -0.019165039, + 0.009399414, + -0.052001953, + -0.015014648, + 0.47265625, + 0.114746094, + 0.17578125, + -0.2890625, + -0.09863281, + -0.025756836, + -0.0028533936, + 0.15332031, + -0.14746094, + -0.010437012, + -0.02722168, + 0.049072266, + 0.024902344, + -0.049804688, + -0.057373047, + 0.005218506, + -0.048583984, + -0.09814453, + -0.064941406, + -0.24609375, + -0.025634766, + 0.027954102, + 0.19238281, + 0.032714844, + -0.04296875, + -0.33789062, + -0.21777344, + -0.008605957, + 0.03515625, + -0.13671875, + -0.23144531, + 0.0015182495, + 0.11035156, + 0.03881836, + 0.16699219, + 0.10449219, + 0.055419922, + -0.038330078, + 0.006866455, + 0.119140625, + 0.025634766, + -0.01928711, + 0.076660156, + -0.09033203, + -0.08886719, + -0.107910156, + 0.08642578, + 0.006286621, + -0.115722656, + -0.12792969, + 0.06933594, + 0.010131836, + 0.0014419556, + 0.064941406, + 0.041992188, + -0.00039291382, + 0.0043029785, + 0.05078125, + 0.05419922, + 0.15136719, + -0.033935547, + 0.021240234, + -0.024047852, + 0.092285156, + 0.084472656, + 0.20507812, + -0.109375, + -0.087890625, + 0.025268555, + -0.08984375, + -0.08691406, + -0.07324219, + 0.0053100586, + 0.010986328, + 0.19433594, + -0.10986328, + 0.13183594, + -0.08886719, + -0.049072266, + -0.048583984, + -0.114746094, + -0.0045166016, + 0.26367188, + -0.049804688, + 0.075683594, + 0.103027344, + 0.1015625, + 0.041015625, + 0.051513672, + -0.005432129, + -0.106933594, + 0.08935547, + -0.078125, + -0.052246094, + -0.037841797, + 0.09375, + -0.052490234, + 0.012329102, + 0.104003906, + -0.023803711, + 0.025390625, + -0.029296875, + 0.091308594, + -0.1171875, + 0.14355469, + -0.017333984, + -0.099121094, + -0.03491211, + 0.24707031, + -0.037597656, + -0.076660156, + 0.05493164, + -0.10253906, + 0.026489258, + 0.16601562, + -0.03173828, + 0.07519531, + -0.07373047, + 0.00048828125, + 0.013244629, + -0.13671875, + -0.02746582, + -0.055908203, + 0.025756836, + 0.032958984, + 0.022949219, + -0.15332031, + 0.013061523, + 0.071777344, + -0.087890625, + -0.008483887, + 0.06347656, + -0.027832031, + 0.122558594, + 0.015991211, + 0.040283203, + 0.16503906, + -0.09423828, + -0.0126953125, + -0.031982422, + -0.03955078, + 0.0087890625, + 0.026489258, + -0.0134887695, + 0.037109375, + -0.05834961, + 0.014465332, + -0.07421875, + 0.057373047, + -0.021362305, + 0.15722656, + 0.12695312, + -0.045898438, + -0.1875, + -0.029785156, + -0.21777344, + 0.08154297, + -0.091308594, + -0.053710938, + 0.12597656, + 0.0703125, + 0.09033203, + -0.09716797, + 0.043701172, + 0.13769531, + 0.048583984, + 0.04663086, + 0.10205078, + 0.01940918, + -0.08203125, + -0.115722656, + -0.015991211, + -0.0073242188, + -0.12060547, + 0.19140625, + -0.026000977, + 0.44726562, + -0.042236328, + 0.11376953, + 0.006072998, + 0.15625, + 0.068359375, + 0.02319336, + -0.018066406, + 0.033691406, + 0.003768921, + 0.048339844, + 0.079589844, + 0.041015625, + 0.092285156, + 0.16308594, + -0.28710938, + 0.03112793, + -0.03564453, + 0.05102539, + -0.020996094, + -0.015380859, + -0.056640625, + 0.014343262, + -0.18554688, + -0.10888672, + -0.044189453, + -0.07373047, + -0.103515625, + -0.040527344, + -0.22070312, + 0.122558594, + 0.036376953, + -0.13378906, + 0.07470703, + -0.06298828, + -0.09716797, + -0.079589844, + -0.028930664, + -0.0058288574, + -0.08544922, + 0.008728027, + -0.20800781, + -0.041992188, + -0.5390625, + 0.013305664, + 0.028442383, + 0.06591797, + -0.036132812, + -0.027832031, + 0.05419922, + 0.12890625, + 0.0234375, + 0.040771484, + -0.07763672, + -0.037353516, + -0.016113281, + 0.13867188, + 0.03491211, + -0.064453125, + -0.04736328, + 0.21289062, + 0.013549805, + -0.04248047, + 0.068847656, + -0.026489258, + -0.08203125, + -0.06738281, + 0.0064697266, + 0.084472656, + -0.07861328, + 0.10205078, + -0.05102539, + 0.080078125, + 0.033935547, + 0.03955078, + 0.16992188, + -0.016113281, + 0.05908203, + -0.02758789, + 0.16796875, + 0.08496094, + 0.07373047, + 0.11669922, + 0.119628906, + -0.041015625, + -0.02709961, + -0.046142578, + 0.08935547, + 0.048095703, + -0.09765625, + -0.095214844, + 0.115722656, + 0.110839844, + -0.018310547, + -0.07763672, + -0.020996094, + 0.020263672, + -0.041259766, + -0.34960938, + -0.07324219, + -0.095703125, + -0.044921875, + -0.115722656, + -0.053955078, + -0.09375, + 0.107910156, + -0.07519531, + -0.60546875, + 0.03491211, + -0.084472656, + -0.010864258, + -0.16992188, + -0.036621094, + -0.026855469, + -0.032226562, + 0.15332031, + -0.24121094, + 0.06689453, + -0.0076904297, + 0.013122559, + 0.08544922, + 0.036132812, + 0.0073547363, + -0.013671875, + -0.046875, + 0.06689453, + 0.016601562, + -0.10839844, + 0.14453125, + -0.07470703, + -0.038085938, + 0.057861328, + -0.13671875, + 0.083496094, + 0.115722656, + -0.002105713, + 0.041259766, + -0.0043640137, + 0.076660156, + -0.115722656, + 0.103027344, + -0.045166016, + 0.011657715, + -0.055419922, + 0.016601562, + -0.020263672, + 0.17480469, + -0.041748047, + -0.057128906, + 0.067871094, + 0.06542969, + -0.1171875, + 0.007385254, + -0.07128906, + 0.038330078, + 0.123046875, + -0.022583008, + 0.083984375, + 0.11035156, + -0.033935547, + 0.009460449, + -0.060791016, + 0.046875, + 0.003112793, + -0.049316406, + 0.05908203, + 0.0014801025, + -0.052490234, + -0.0019454956, + -0.0625, + 0.03955078, + 0.0002002716, + -0.0037078857, + 0.016479492, + -0.06982422, + 0.099609375, + -0.017578125, + 0.03173828, + -0.045410156, + 13.375, + 0.05126953, + 0.052490234, + -0.061035156, + -0.059570312, + 0.14941406, + 0.049072266, + 0.020874023, + -0.057617188, + -0.0004234314, + -0.044189453, + -0.046875, + 0.09326172, + 0.0025939941, + -0.029663086, + 0.04663086, + -0.018188477, + -0.099609375, + 0.01550293, + 0.049804688, + -0.24609375, + -0.055419922, + 0.06225586, + -0.06738281, + 0.004058838, + 0.00091934204, + 0.06689453, + 0.114746094, + 0.068359375, + 0.03466797, + -0.02734375, + -0.014770508, + 0.08691406, + 0.0058288574, + -0.015075684, + 0.010253906, + 0.039794922, + 0.018066406, + 0.28320312, + 0.0095825195, + -0.059570312, + 0.2734375, + -0.02722168, + 0.08105469, + 0.024902344, + -0.021118164, + 0.024780273, + -0.025146484, + 0.016723633, + 0.028198242, + -0.114746094, + -0.07861328, + -0.055908203, + 0.07861328, + -0.06640625, + 0.111816406, + 0.123535156, + -0.08935547, + 0.041748047, + -0.12158203, + -0.045654297, + 0.03930664, + 0.06542969, + 0.09765625, + -0.123046875, + 0.011962891, + -0.076660156, + 0.029174805, + 0.040039062, + 0.09375, + -0.04272461, + -0.08300781, + 0.080566406, + -0.044189453, + 0.035888672, + -0.060058594, + 0.02368164, + -0.0018920898, + -0.115234375, + -0.087402344, + -0.14257812, + 0.092285156, + 0.031982422, + 0.118652344, + 0.06933594, + -0.15820312, + -0.036132812, + 0.020385742, + 0.06591797, + 0.083496094, + 0.009887695, + 0.0066833496, + 0.32421875, + 0.10888672, + 0.021850586, + 0.2109375, + -0.011962891, + -0.19042969, + 0.060302734, + -0.140625, + -0.01550293, + 0.028930664, + 1.625, + -0.1796875, + 0.052246094, + 0.07373047, + 0.019042969, + 0.15136719, + 0.067871094, + 0.1484375, + -0.08203125, + 0.0546875, + -0.075683594, + -0.1328125, + 0.07421875, + 0.17773438, + 0.17480469, + -0.076171875, + 0.12451172, + 0.013305664, + 0.12109375, + 0.104003906, + 0.03857422, + 0.052978516, + 0.0077209473, + -0.21191406, + 0.13476562, + 0.07373047, + 0.048828125, + -0.19042969, + -0.05908203, + -0.038330078, + 0.14648438, + -0.049560547, + -0.13085938, + -0.052001953, + 0.08886719, + 0.17285156, + 0.04663086, + 0.09814453, + -0.01953125, + -0.00982666, + -0.012817383, + -0.043945312, + 0.0234375, + -0.05444336, + -0.020385742, + 0.2421875, + 0.0039367676, + -0.14160156, + -0.07763672 + ] +} \ No newline at end of file diff --git a/speakers/dylan.json b/speakers/dylan.json new file mode 100644 index 0000000..fd17e85 --- /dev/null +++ b/speakers/dylan.json @@ -0,0 +1,2055 @@ +{ + "name": "dylan", + "description": "male_adult", + "spk_id": 2878, + "spk_emb": [ + -0.13964844, + -0.15625, + -0.061279297, + 0.08203125, + 0.09765625, + 0.011657715, + 0.03955078, + -3.625, + -0.09667969, + 0.084472656, + 0.072753906, + 0.08251953, + -0.09667969, + 0.01965332, + -0.01361084, + -0.002670288, + -0.008422852, + 0.22753906, + 0.0138549805, + 0.104003906, + -0.23242188, + -0.08935547, + -0.17871094, + -0.020874023, + -0.12060547, + 0.03955078, + 0.100097656, + -0.0014648438, + -0.099121094, + -0.016845703, + 0.012573242, + -0.10546875, + -0.022705078, + 0.029785156, + 0.15722656, + 0.018920898, + 0.021240234, + 0.026489258, + -0.09814453, + -0.025634766, + 0.096191406, + 0.26953125, + -0.025634766, + -0.31640625, + -0.08251953, + -0.12207031, + 0.11816406, + 0.16503906, + -0.10986328, + 0.047851562, + 0.032470703, + 0.095214844, + -0.15527344, + 0.022705078, + 0.03173828, + -0.08935547, + -0.053222656, + -0.09472656, + -0.092285156, + -0.08935547, + -0.0546875, + 0.057128906, + 0.14941406, + 0.022094727, + 0.103027344, + 0.16015625, + -0.0021362305, + -0.041503906, + -0.051757812, + 0.35351562, + -0.080566406, + 0.047607422, + -0.09277344, + 0.001701355, + -0.14746094, + -0.036621094, + 0.014526367, + -0.03149414, + 0.08105469, + -0.06689453, + 0.11816406, + 0.005340576, + 0.0052490234, + 0.099121094, + -0.14550781, + 0.10253906, + 0.091796875, + -0.013244629, + 0.021362305, + 0.060058594, + 0.0026550293, + 0.02355957, + -0.05029297, + 0.040527344, + 0.099609375, + 0.110839844, + -0.10449219, + 0.018310547, + 0.114746094, + -0.057128906, + -0.08154297, + -0.1328125, + 0.08691406, + -0.010620117, + -0.076660156, + 0.07324219, + -0.10644531, + -0.045410156, + 0.026000977, + -0.0024719238, + -0.080078125, + -0.18066406, + -0.03112793, + -0.06201172, + 0.053955078, + 0.08105469, + 0.13378906, + -0.017944336, + 0.088378906, + -0.007385254, + 0.01977539, + 0.28710938, + 0.06738281, + 0.47265625, + -0.044433594, + 0.037353516, + -0.09375, + 0.14941406, + 0.07910156, + 0.072265625, + -0.08886719, + 0.18066406, + -0.012268066, + -0.13769531, + -0.02734375, + 0.03930664, + -0.08251953, + 0.009033203, + 0.056152344, + -0.1171875, + 0.024536133, + 0.0146484375, + 0.19238281, + -0.050048828, + -0.028808594, + 0.36523438, + -0.016723633, + 0.0057678223, + 0.021118164, + -0.09326172, + 0.040527344, + -0.080078125, + -0.12207031, + 0.21191406, + -0.08886719, + 0.0134887695, + 0.27929688, + 0.019042969, + -0.06347656, + 0.033691406, + -0.088378906, + -0.18359375, + -0.052246094, + 0.10058594, + -0.03466797, + 0.06201172, + -3.609375, + -0.106933594, + 0.030639648, + -0.00005865097, + 0.087402344, + -0.068359375, + 0.0064086914, + 0.08642578, + -0.080566406, + -0.03540039, + -0.10058594, + -0.080566406, + 0.088378906, + 0.10205078, + -0.0013885498, + 0.16113281, + 0.05419922, + -0.07373047, + -0.0072631836, + 0.0037841797, + 0.045898438, + -0.041748047, + 0.12451172, + 0.020385742, + -0.040039062, + -0.08886719, + 0.006225586, + 0.021240234, + 0.03515625, + 0.11279297, + -0.14648438, + -0.018310547, + 0.036376953, + 0.01159668, + 0.030029297, + 0.064453125, + 0.045166016, + -0.010375977, + 0.109375, + 0.33203125, + 0.0390625, + -0.06347656, + 0.08984375, + 0.203125, + 0.091308594, + 0.15039062, + 0.030517578, + 0.079589844, + -0.01184082, + -0.27539062, + 0.080078125, + -0.05493164, + -0.041015625, + -0.061035156, + 0.010437012, + -0.22167969, + -0.0045166016, + -0.095703125, + -0.03125, + 0.24609375, + -0.050048828, + 0.029785156, + -0.014160156, + 0.03149414, + 0.017944336, + -0.08203125, + -0.103515625, + -0.05078125, + 0.032958984, + -0.015319824, + -0.20800781, + -0.08251953, + -0.099121094, + 0.122558594, + 0.080566406, + -0.22753906, + -0.019165039, + 0.0075683594, + -0.07324219, + -0.07519531, + 0.125, + 0.060058594, + 0.06298828, + -0.06982422, + 0.053710938, + -0.13085938, + -0.026367188, + 0.011291504, + -0.072265625, + -0.061767578, + 0.123046875, + -0.06982422, + 0.05444336, + 0.056640625, + -0.03955078, + 0.16699219, + -0.083496094, + 0.022460938, + -0.063964844, + -0.025146484, + 0.030883789, + -0.08886719, + 0.029052734, + 0.013916016, + -0.25390625, + 0.15527344, + 0.43945312, + 0.01940918, + -0.04736328, + -0.05102539, + -0.20117188, + 0.032226562, + 0.06640625, + -0.12890625, + -0.12792969, + -0.021362305, + 0.107910156, + -0.008117676, + -0.20019531, + -0.12792969, + -0.030517578, + -0.48046875, + 0.15332031, + 0.060058594, + -0.083496094, + 0.022460938, + 0.029296875, + 0.049560547, + -0.115234375, + -0.026733398, + 0.018676758, + -0.047607422, + -0.096191406, + 0.014343262, + 0.21582031, + 0.053710938, + -0.0020446777, + 0.059814453, + -0.009643555, + 0.0032348633, + -0.05859375, + -0.12109375, + -0.053466797, + 0.06640625, + 0.037841797, + 0.076660156, + -0.040039062, + -0.119140625, + 0.068847656, + 0.032958984, + -0.018920898, + -0.028320312, + -0.118652344, + 0.47460938, + -0.072753906, + -0.034423828, + -0.029052734, + 0.11376953, + -0.07128906, + 0.18261719, + -0.041503906, + 0.029296875, + 0.01373291, + -0.045654297, + -0.16113281, + -0.15527344, + 0.10644531, + 0.044677734, + -0.06201172, + 0.044921875, + -0.041015625, + 0.12890625, + 0.053955078, + 0.02355957, + -0.03564453, + -0.076171875, + 0.11279297, + -0.061035156, + -0.19824219, + -0.12109375, + -0.049072266, + 0.110839844, + 0.055419922, + -0.14550781, + 0.032226562, + 0.040527344, + -0.0027770996, + -0.041748047, + 0.15039062, + -0.100097656, + -0.072753906, + -0.13085938, + -0.002746582, + 0.16210938, + 0.02709961, + -0.05908203, + 0.012084961, + -0.08691406, + -0.049804688, + 0.029541016, + -0.092285156, + -0.1171875, + -0.02722168, + -0.056396484, + -0.12597656, + -0.10644531, + 0.119628906, + -0.16796875, + 0.1328125, + 0.10058594, + -0.06738281, + -0.08105469, + 0.013671875, + -0.0023498535, + 0.013244629, + 0.07470703, + -0.0390625, + -0.09472656, + -0.03125, + 0.027954102, + -0.17089844, + 0.080566406, + 0.030761719, + -0.0035552979, + -0.029663086, + 0.075683594, + -0.11816406, + -0.12011719, + 0.0030059814, + 0.06640625, + -0.095703125, + 0.029785156, + -0.08984375, + -0.00030326843, + 0.037597656, + -0.07910156, + 0.0016937256, + 0.049560547, + -0.04345703, + 0.052490234, + 0.026367188, + -0.056884766, + -0.046142578, + 0.028808594, + 0.25976562, + 0.072265625, + -0.0023956299, + -0.07519531, + -0.09667969, + -0.05029297, + -0.05444336, + -0.45703125, + 0.013183594, + 0.02734375, + -0.076660156, + -0.015319824, + -0.10253906, + -0.13964844, + 0.02709961, + 0.33398438, + -0.084472656, + -0.06225586, + -0.016845703, + -0.030273438, + -0.06738281, + -0.13085938, + -0.09814453, + -0.03125, + -0.06689453, + 0.022094727, + 0.06640625, + 0.08691406, + -0.20214844, + -0.052001953, + 0.053466797, + -0.09667969, + -0.051513672, + -0.006225586, + 0.00062942505, + -0.0115356445, + -0.013061523, + -0.036376953, + 0.044189453, + 0.033935547, + 0.026367188, + 0.040771484, + -0.084472656, + -0.15136719, + -0.14355469, + -0.055664062, + 0.078125, + -0.03466797, + -0.0072631836, + -0.00793457, + -0.015625, + -0.0037994385, + -0.079589844, + -0.022216797, + 0.009277344, + -0.06591797, + 0.008300781, + -0.072265625, + -0.0021972656, + 0.041748047, + 0.0030059814, + -0.1328125, + -0.11767578, + -0.041748047, + 0.055419922, + -0.03466797, + 0.095703125, + 0.06347656, + 0.1484375, + -0.044189453, + 0.110839844, + -0.10839844, + 0.043701172, + -0.13867188, + -0.088378906, + 0.02319336, + 0.14453125, + -0.037353516, + 0.03930664, + 0.0390625, + 0.14550781, + -0.04663086, + -0.06982422, + -0.025634766, + -0.083496094, + 0.028076172, + -0.05883789, + -0.033935547, + -0.041259766, + -0.57421875, + -0.09375, + -0.022216797, + -0.083984375, + 0.07128906, + 0.068359375, + 0.011352539, + -0.044677734, + 0.15722656, + 0.029052734, + -0.0138549805, + 0.011047363, + -0.013549805, + 0.25390625, + -0.1015625, + -0.032958984, + -0.06640625, + -0.041015625, + -0.18847656, + -0.05419922, + -0.033691406, + -0.10107422, + 0.015197754, + 0.13671875, + -0.051757812, + 0.08203125, + -0.014831543, + 0.13378906, + 0.17675781, + -0.01940918, + -0.03100586, + -0.08300781, + -0.11425781, + 0.08300781, + -0.07714844, + -0.0073242188, + -0.091308594, + -0.044921875, + 0.05883789, + 0.01928711, + 0.015136719, + -0.063964844, + -0.015197754, + 0.03515625, + 0.052001953, + -0.036132812, + 0.08886719, + 0.01159668, + -0.12402344, + -0.04272461, + -0.025146484, + -0.07714844, + -0.008666992, + 0.083496094, + 0.15820312, + -0.059570312, + 0.039794922, + 0.018676758, + 0.061035156, + -0.04272461, + 0.020629883, + -0.01953125, + 0.004486084, + 0.18847656, + -0.068847656, + 0.053222656, + 0.013549805, + -0.06591797, + -0.055908203, + -0.0023651123, + 0.23339844, + -0.033447266, + -0.095214844, + 0.023925781, + -0.04736328, + -0.0072631836, + -0.012145996, + -0.103027344, + -0.028198242, + 0.13671875, + -0.007751465, + 0.11328125, + 0.09863281, + 0.10449219, + -0.0859375, + -0.07470703, + 0.03491211, + -0.034179688, + 0.056884766, + -0.09863281, + -0.037109375, + 0.03881836, + 0.056152344, + -0.029296875, + 0.045654297, + -0.0625, + 0.05810547, + 0.1484375, + 0.014343262, + 0.0703125, + 0.03491211, + -0.12158203, + 0.1015625, + 0.08154297, + -0.072753906, + 0.0048828125, + -0.06347656, + 0.088378906, + -0.05053711, + 0.21289062, + 0.13574219, + 0.063964844, + -0.06640625, + 0.056152344, + -0.014831543, + -0.0703125, + -0.09423828, + 0.072753906, + -0.041015625, + -0.04272461, + 0.024169922, + 0.052001953, + -0.21191406, + -0.09472656, + -0.036865234, + 0.020019531, + 0.12988281, + 0.06640625, + 0.015380859, + 0.048583984, + 0.005004883, + 0.01953125, + 0.026733398, + 0.084472656, + 0.12890625, + -0.0134887695, + -0.008239746, + 0.052490234, + -0.040039062, + 0.041992188, + -0.083984375, + -0.061523438, + 0.10107422, + -0.118652344, + -0.04296875, + -0.11816406, + 0.1328125, + 0.15625, + 0.03515625, + -0.05810547, + 0.032226562, + 0.03881836, + -0.064453125, + 0.05810547, + -0.018798828, + -0.050048828, + -0.0079956055, + 0.06591797, + 0.017944336, + -0.71484375, + 0.140625, + -0.030395508, + -0.24023438, + -0.075683594, + -0.005004883, + -0.07861328, + -0.11328125, + 0.030517578, + 0.00031471252, + 0.078125, + -0.04296875, + -0.19433594, + -0.045410156, + 0.063964844, + -0.16113281, + 0.056884766, + -0.0071105957, + 0.030639648, + -0.024780273, + 0.00793457, + 0.040283203, + 0.05517578, + 0.01373291, + -0.24902344, + -0.006652832, + -0.114746094, + 0.043701172, + -0.004425049, + 0.00039482117, + 0.014892578, + -0.018188477, + -0.007446289, + -0.05834961, + 0.091796875, + -0.076171875, + -0.053710938, + -0.051513672, + -0.076660156, + -0.13085938, + 0.020141602, + 0.0036621094, + 0.0035705566, + -0.10839844, + 0.01171875, + 0.09277344, + -0.01361084, + -0.024658203, + 0.06933594, + 0.078125, + -0.03515625, + 0.01159668, + -0.048583984, + 0.07128906, + -0.18261719, + -0.0390625, + -0.43164062, + 0.107910156, + -0.006134033, + -0.033935547, + 0.18652344, + -0.08300781, + 0.045898438, + 0.0033416748, + -0.026123047, + -0.0007019043, + -0.000101566315, + -0.053710938, + 0.08691406, + 0.43945312, + -0.033691406, + 0.046875, + -0.14160156, + 0.10644531, + -0.036376953, + 0.15527344, + -0.03515625, + 0.11767578, + 0.13378906, + -0.027709961, + 0.10595703, + 0.048339844, + 0.02758789, + 0.010681152, + -0.030639648, + -0.050048828, + 0.10546875, + 0.030395508, + 0.009216309, + 0.033203125, + 0.12792969, + -0.031982422, + 0.060791016, + 0.06689453, + -0.012268066, + -0.092285156, + -0.056396484, + -0.061767578, + 0.02709961, + -0.0066223145, + -0.022827148, + 0.063964844, + -0.061035156, + 0.02709961, + 0.059570312, + 0.08154297, + 0.0064697266, + -0.071777344, + 0.06933594, + 0.055664062, + 0.07470703, + 0.053466797, + -0.060546875, + -0.009216309, + -0.15429688, + -0.041259766, + 0.13085938, + 0.008056641, + -0.14941406, + 0.041503906, + -0.09863281, + 0.072265625, + -0.10986328, + -0.14257812, + -0.018432617, + -0.0390625, + 0.03857422, + 0.017089844, + -0.057128906, + -0.06982422, + 0.022094727, + 0.026123047, + 0.013000488, + -0.055664062, + -0.14355469, + -0.011352539, + 0.04736328, + 0.0625, + 0.072265625, + -0.022949219, + 0.083984375, + 0.0703125, + -0.022705078, + -0.11230469, + 0.015380859, + 0.022705078, + 0.016723633, + -0.125, + 0.20507812, + 0.053466797, + 0.030883789, + -0.08105469, + 0.01953125, + -0.020507812, + 0.05444336, + 0.10107422, + -0.06201172, + -0.079589844, + -0.03515625, + -0.045410156, + 0.007232666, + -0.087890625, + -0.032226562, + -0.20800781, + 0.12890625, + -0.234375, + -0.063964844, + -0.01965332, + -0.07373047, + -0.0546875, + 0.052978516, + -0.040039062, + 0.12011719, + -0.11376953, + 0.032226562, + 0.04296875, + -0.13085938, + 0.015380859, + -0.14746094, + 0.09765625, + -0.07519531, + 0.07714844, + 0.0039367676, + 0.020874023, + 0.16503906, + -0.008361816, + 0.4453125, + 0.068847656, + -0.18457031, + 0.013427734, + -0.0073242188, + 0.068847656, + 0.15820312, + 0.6875, + -0.18945312, + 0.01953125, + -0.040283203, + -0.12451172, + 0.016113281, + 0.018676758, + -0.08691406, + 0.10839844, + 0.42578125, + -0.11035156, + -0.024291992, + 0.06738281, + -0.0068969727, + 0.052734375, + 0.107910156, + -0.050048828, + -0.111816406, + -0.033447266, + 0.07373047, + -0.033935547, + 0.15429688, + 0.032226562, + 0.1796875, + 0.036132812, + 0.12109375, + 0.025878906, + -0.05883789, + -0.091308594, + -0.0017776489, + 0.26757812, + -0.020385742, + 0.119140625, + -0.040771484, + -0.033203125, + -0.0859375, + 0.026245117, + 0.027954102, + 0.02746582, + 0.021484375, + 0.03857422, + -0.091308594, + -0.033691406, + 0.03491211, + -0.020141602, + 0.084472656, + -0.03149414, + -0.13378906, + 0.092285156, + -0.07519531, + 0.010681152, + 0.11767578, + 0.051513672, + -0.10546875, + -0.06298828, + -0.0033416748, + -0.14453125, + -0.23535156, + -0.016479492, + -0.20800781, + -0.080078125, + -0.05517578, + -0.06640625, + 0.037841797, + 0.12988281, + -0.033447266, + 0.041015625, + 0.50390625, + 0.068847656, + 0.0069274902, + 0.079589844, + -0.01940918, + 0.10205078, + 0.075683594, + -0.009033203, + 0.037841797, + 0.030639648, + 0.015258789, + 0.018310547, + 0.037841797, + -0.17871094, + 0.056640625, + 0.09863281, + -0.030029297, + 0.01977539, + 0.038330078, + 0.12695312, + -0.014221191, + -0.11376953, + 0.11279297, + -0.040039062, + 0.067871094, + 0.041503906, + 0.056152344, + 0.1953125, + -0.28515625, + -0.031982422, + -0.060302734, + 0.00680542, + 0.06689453, + 0.017211914, + -0.0038604736, + 0.061523438, + 0.03515625, + 0.016235352, + -0.0036010742, + -0.18359375, + 0.13867188, + 0.3515625, + -0.100097656, + 0.044433594, + -0.012390137, + -0.071777344, + 0.17871094, + -0.083984375, + 0.052734375, + -0.009094238, + 0.11425781, + -0.084472656, + -0.025756836, + -0.011047363, + -0.1015625, + -0.0064086914, + -0.0859375, + -0.05834961, + -0.17578125, + 0.08251953, + 0.22851562, + -0.07763672, + 0.05834961, + -0.10498047, + 0.043945312, + 0.09082031, + -0.21582031, + 0.03515625, + -0.068359375, + 0.11376953, + -0.111328125, + -0.115234375, + -0.008666992, + -0.014282227, + 0.080566406, + -0.0390625, + -0.03491211, + 0.04638672, + -0.053222656, + -0.1875, + 0.03930664, + 0.022338867, + -0.1015625, + -0.06225586, + -0.114746094, + -0.057861328, + 0.02734375, + -0.068847656, + -0.05078125, + -0.0020751953, + 0.29296875, + 0.060058594, + 0.021972656, + -0.09423828, + 0.016967773, + -0.032226562, + -0.033447266, + -0.056884766, + -0.104003906, + 0.14160156, + -0.10546875, + 0.01953125, + -0.27148438, + 0.08105469, + 0.07714844, + 0.044677734, + 0.059326172, + 0.12890625, + -0.087890625, + -0.025390625, + 0.13476562, + -0.0077819824, + 0.020874023, + -0.056640625, + 0.044189453, + -0.053466797, + -0.08300781, + -0.013366699, + -0.0040893555, + 0.016601562, + 0.0390625, + -0.099121094, + -0.004119873, + 0.01928711, + 0.20996094, + -0.09863281, + 0.030151367, + -0.0010681152, + -0.026855469, + -0.029174805, + -0.05078125, + 0.060302734, + -0.08935547, + -0.07470703, + 0.10888672, + -0.010498047, + -0.06689453, + -0.21289062, + -0.009033203, + 0.3203125, + -0.13085938, + 0.21582031, + 0.087402344, + -0.023925781, + -0.012329102, + 0.045654297, + -0.09423828, + 0.09472656, + 0.063964844, + -0.003967285, + -0.08203125, + 0.14550781, + 0.25390625, + 0.10107422, + -0.09472656, + 0.01940918, + -0.083496094, + -0.087890625, + 0.14160156, + 0.36132812, + -0.05859375, + -0.033203125, + 0.14550781, + -0.15722656, + 0.21386719, + -0.075683594, + -0.047607422, + -0.3203125, + 0.091796875, + -0.2890625, + -0.045166016, + -0.114746094, + 0.104003906, + -0.010620117, + 0.010314941, + -0.01586914, + 0.025756836, + -0.12011719, + -0.13085938, + 0.14453125, + -0.009155273, + -0.099121094, + -0.09082031, + 0.052734375, + -0.09082031, + 0.10888672, + -0.08154297, + 0.084472656, + 0.111816406, + -0.09326172, + -0.0002746582, + 0.026123047, + -0.026733398, + 0.09082031, + -0.006164551, + -0.05102539, + -0.10205078, + -0.0053100586, + -0.057373047, + 0.171875, + -0.03955078, + 0.012023926, + 0.012451172, + -0.12597656, + -0.006134033, + -0.07910156, + 0.13574219, + 0.002609253, + 0.05834961, + -0.18847656, + 0.0019226074, + 0.075683594, + -0.06591797, + -0.021606445, + -0.095214844, + 0.043701172, + 0.043945312, + 0.21386719, + -0.0625, + -0.034179688, + 0.053955078, + -0.4921875, + 0.14550781, + 0.040039062, + 0.026367188, + 0.02746582, + -0.05029297, + -0.03881836, + -0.13769531, + 0.0079956055, + -0.12011719, + -0.023925781, + 0.15332031, + 0.1953125, + 0.109375, + -0.025878906, + -0.07861328, + 0.125, + -0.008300781, + 0.08105469, + 0.049560547, + 0.020629883, + -0.0013809204, + -0.092285156, + -0.024169922, + -0.018066406, + -0.18847656, + 0.01159668, + 0.01574707, + 0.021850586, + -0.056152344, + -0.10546875, + -0.06591797, + -0.14550781, + -0.16210938, + -0.060791016, + 0.11621094, + -0.026367188, + -0.4453125, + -0.111328125, + -0.11279297, + -0.055908203, + 0.048095703, + 0.04736328, + 0.123046875, + 0.25585938, + -0.114746094, + 0.140625, + 0.060791016, + 0.096191406, + -0.007080078, + -0.037841797, + -0.14453125, + 0.047851562, + 0.13867188, + 0.018554688, + -0.09667969, + -0.13867188, + 0.049316406, + -0.0010223389, + 0.061035156, + -0.026977539, + -0.08251953, + 0.091308594, + -0.013671875, + 0.107910156, + -0.109375, + 0.0043945312, + -0.0047302246, + -0.008361816, + 0.111816406, + 0.0032806396, + 0.08544922, + -0.111328125, + -0.12109375, + -0.048095703, + -0.03955078, + 0.01977539, + -0.05102539, + -0.002380371, + -0.056396484, + 0.10253906, + 0.03466797, + -0.048095703, + 0.12597656, + -0.01550293, + -0.07910156, + 0.110839844, + -0.4140625, + 0.16210938, + 0.083984375, + -0.07373047, + 0.076660156, + -0.38085938, + -0.07763672, + 0.028320312, + -0.045410156, + -0.16015625, + 0.08251953, + -0.003189087, + -0.005279541, + 0.00025558472, + -0.08642578, + 0.35546875, + -0.0115356445, + 0.084472656, + 0.035888672, + 0.01928711, + 0.14257812, + -0.010864258, + -0.30664062, + 0.12792969, + -0.08203125, + -0.011657715, + 0.044921875, + 0.012512207, + -0.033691406, + -0.060058594, + -0.08203125, + 0.05419922, + -0.12792969, + 0.0859375, + 0.12597656, + 0.038085938, + 0.088378906, + -0.083984375, + -0.20507812, + -0.022216797, + -0.033447266, + 0.00970459, + 0.014587402, + 0.07470703, + -0.09082031, + -0.0018692017, + 0.010009766, + -0.03564453, + -0.09716797, + 0.023803711, + -0.12890625, + -0.03173828, + -0.032714844, + 0.052246094, + 0.06542969, + -0.111816406, + 0.025390625, + 0.06640625, + 0.072265625, + -0.022949219, + 0.019042969, + 0.10498047, + -0.0703125, + 0.004638672, + 0.16503906, + -0.0107421875, + 0.01928711, + 0.0033416748, + -0.19433594, + 0.020263672, + 0.15722656, + -0.01586914, + 0.061767578, + -0.05419922, + -0.04663086, + -0.099609375, + -0.048339844, + 0.052978516, + 0.024047852, + 0.026977539, + -0.035888672, + -0.036132812, + -0.024291992, + -0.026245117, + -0.11035156, + -0.0047912598, + 0.053222656, + -0.011962891, + 0.008911133, + -0.140625, + 0.0020751953, + -0.021362305, + 0.018798828, + -0.010559082, + 0.08251953, + -0.09667969, + -0.052490234, + -0.008850098, + 0.021850586, + -0.07373047, + 0.042236328, + 0.115234375, + 0.0390625, + 0.111816406, + -0.12988281, + -0.034423828, + 0.19238281, + 0.078125, + 0.07910156, + 0.21386719, + 0.00003194809, + -0.028686523, + -0.0134887695, + -0.041992188, + 0.21289062, + -0.012268066, + -0.019165039, + 0.09082031, + 0.052490234, + 0.1328125, + -0.017456055, + -0.14941406, + 0.087402344, + -0.7890625, + -0.022094727, + -0.18652344, + 0.19042969, + 0.076660156, + -0.05834961, + -0.033935547, + 0.012084961, + 0.003753662, + 0.05810547, + -0.140625, + 0.03857422, + -0.095703125, + -0.13574219, + -0.044677734, + 0.03930664, + 0.026855469, + 0.04321289, + 0.019897461, + -0.0625, + -0.049316406, + 0.0703125, + 0.095703125, + -0.0115356445, + -0.006652832, + -0.09667969, + 0.28320312, + 0.11621094, + -0.16015625, + -0.0063171387, + -0.03930664, + -0.091796875, + -0.37304688, + 0.033447266, + -0.048583984, + 0.038085938, + 0.01361084, + -0.14941406, + -0.33984375, + -0.15234375, + 0.014343262, + -0.06738281, + 0.014770508, + 0.05517578, + -0.040039062, + -0.1171875, + 0.28125, + -0.072265625, + 0.032958984, + -0.016479492, + 0.02722168, + -0.04663086, + 2.3125, + -0.063964844, + -0.03149414, + 0.046142578, + 0.013671875, + -0.021484375, + -0.14746094, + 0.10644531, + -0.072753906, + 0.067871094, + 0.01940918, + -0.03149414, + 0.08886719, + 0.040039062, + -0.095703125, + 0.016845703, + 0.106933594, + 0.17578125, + -0.044677734, + 0.08203125, + -0.03149414, + 0.20996094, + -0.12890625, + 0.02722168, + -0.14355469, + 0.11279297, + -0.053710938, + 0.10205078, + -0.13769531, + -0.075683594, + -0.037353516, + 0.030395508, + 0.03491211, + -0.020629883, + -0.13574219, + -0.048095703, + 0.13085938, + 0.0058288574, + -0.06542969, + 0.21191406, + -0.10449219, + -0.11230469, + -0.019897461, + -0.16699219, + -0.10253906, + 0.016113281, + -0.041259766, + -0.111328125, + 0.07519531, + -0.15722656, + -0.09814453, + 0.029785156, + -0.045410156, + 0.021118164, + 0.203125, + -0.00028800964, + -0.0023651123, + 0.063964844, + -0.13769531, + 0.22753906, + 0.14453125, + -0.021606445, + -0.068359375, + -0.03955078, + -0.08691406, + 0.15332031, + 0.0859375, + -0.032470703, + 0.171875, + -0.13085938, + -0.017089844, + -0.07861328, + -0.022827148, + -0.088378906, + -0.072265625, + -0.046875, + 0.07128906, + 0.0015029907, + 0.22949219, + -0.014587402, + 0.0043945312, + 0.21679688, + 0.08691406, + 0.28710938, + 0.140625, + 0.11035156, + 0.40039062, + -0.10986328, + 0.029418945, + 0.11035156, + 0.011108398, + 0.053466797, + -0.10107422, + 0.05834961, + -0.09277344, + 0.11669922, + 0.25585938, + 0.064453125, + -0.07324219, + -0.07373047, + -0.026123047, + -0.060546875, + -0.013000488, + -0.24316406, + 0.021728516, + -0.20019531, + 0.12988281, + 0.049804688, + -0.49609375, + -0.010986328, + -0.16601562, + -0.044677734, + 0.053710938, + 0.35742188, + 0.09277344, + 0.10107422, + 0.043701172, + 0.123046875, + 0.09033203, + 0.0146484375, + 0.103515625, + -0.14453125, + -0.048095703, + 0.028930664, + 0.018432617, + 0.06201172, + -0.041992188, + 0.029541016, + -0.051513672, + -0.055664062, + 0.021240234, + -0.14746094, + -0.084472656, + 0.10986328, + 0.036132812, + -0.29101562, + -0.04711914, + 0.09863281, + 0.014404297, + -0.0018692017, + 0.18457031, + 0.28710938, + 0.028320312, + 0.17773438, + -0.21289062, + 0.021118164, + -0.014099121, + 0.09375, + 0.035888672, + -0.14160156, + -0.0087890625, + -0.099609375, + -0.061279297, + -0.12402344, + 0.043945312, + 0.07080078, + 0.01159668, + 0.1953125, + -0.12792969, + -0.021118164, + 0.0703125, + -0.060058594, + 0.24316406, + 0.20605469, + -0.015380859, + 0.08496094, + -0.19824219, + -0.099121094, + 0.10107422, + 0.025634766, + -0.080566406, + 0.07519531, + 0.13769531, + -0.111816406, + 0.059326172, + 0.029907227, + 0.15136719, + 0.063964844, + -0.119140625, + 0.08544922, + -0.0049438477, + -0.022949219, + 0.018554688, + 0.029418945, + -0.12158203, + -0.0052490234, + 0.045166016, + 0.14257812, + 0.123046875, + 0.005706787, + -0.09423828, + 0.14941406, + -0.00390625, + 0.010070801, + -0.10449219, + -0.038085938, + 0.28320312, + 0.084472656, + -0.09863281, + -0.12890625, + -0.025146484, + -0.025024414, + -0.061035156, + -0.13574219, + 0.035888672, + 0.03100586, + 0.029785156, + 0.00064468384, + -0.068847656, + 0.0138549805, + 0.12792969, + -0.033203125, + -0.04711914, + -0.11035156, + -0.064941406, + 0.13085938, + -0.015197754, + -0.0017166138, + -0.103515625, + 0.08935547, + -0.099121094, + -0.05883789, + -0.030639648, + 0.171875, + 0.08886719, + 0.038330078, + 0.04736328, + 0.02355957, + 0.09716797, + -0.033935547, + 0.07470703, + -0.08886719, + -0.11230469, + -0.03540039, + 0.087890625, + -0.043945312, + 0.036376953, + 0.07861328, + 0.107421875, + 0.03466797, + -0.033691406, + 0.05102539, + 0.12597656, + -0.05419922, + -0.084472656, + 0.1484375, + -0.011779785, + -0.012634277, + -0.071777344, + 0.41796875, + -0.07910156, + 0.14257812, + 0.08691406, + -0.08203125, + 0.07910156, + 0.08935547, + 0.14160156, + 0.079589844, + -0.011962891, + 0.14941406, + -0.05883789, + -0.018554688, + -0.1484375, + -0.057128906, + -0.075683594, + 0.03930664, + -0.059814453, + 0.095214844, + 0.038330078, + -0.00033569336, + -0.111816406, + 0.030273438, + -0.0013427734, + -0.15332031, + 0.15429688, + -0.068359375, + -0.012512207, + -0.010864258, + -0.19140625, + -0.017700195, + -0.008361816, + -0.16796875, + -0.119140625, + 0.034423828, + -0.057617188, + 0.075683594, + -0.12890625, + -0.016601562, + -0.078125, + -0.092285156, + -0.044677734, + -0.18554688, + 0.010192871, + -0.107910156, + -0.27539062, + 0.044677734, + -0.07910156, + 0.09863281, + -0.019042969, + 0.04663086, + 0.037353516, + -0.017944336, + -0.041015625, + -0.049804688, + 0.076171875, + 0.07080078, + -0.033447266, + -0.036865234, + 0.119140625, + 0.019897461, + 0.083984375, + -0.04345703, + -0.08154297, + 0.009521484, + -0.07910156, + -0.31054688, + 0.022705078, + 0.26757812, + -0.043701172, + -0.06640625, + -0.016357422, + 0.06738281, + 0.15625, + 0.13867188, + -0.00793457, + 0.122558594, + -0.12890625, + -0.099121094, + 0.05908203, + 0.083496094, + -0.032714844, + -0.061279297, + -0.08544922, + 0.17382812, + 0.006652832, + 0.07470703, + -0.024780273, + -0.080078125, + -0.12451172, + 0.0126953125, + -0.038330078, + -0.33203125, + -0.034423828, + 0.018798828, + -0.3515625, + 0.009338379, + -0.20800781, + 0.04321289, + 0.01373291, + 0.026611328, + -0.053955078, + -0.15527344, + -0.020996094, + 0.012145996, + -0.02758789, + -0.048095703, + 0.05859375, + 0.035888672, + -0.060546875, + 0.013793945, + -0.22753906, + 0.08154297, + 0.036621094, + 0.12158203, + 0.024902344, + -0.125, + -0.0067443848, + 0.052978516, + -0.048095703, + 0.027832031, + -0.12890625, + -0.027832031, + -0.076171875, + 0.063964844, + -0.021972656, + -0.047607422, + -0.022949219, + 0.13183594, + -0.033935547, + -0.07128906, + 0.01965332, + -0.0078125, + -0.19335938, + -0.00982666, + -0.00793457, + -0.14257812, + -0.09472656, + 0.04248047, + -0.123046875, + 0.08496094, + -0.04296875, + 0.059814453, + 0.20214844, + -0.15820312, + 0.13085938, + 0.111816406, + 0.076171875, + 0.12011719, + -0.05493164, + 0.0008163452, + 0.100097656, + 0.040039062, + 0.087402344, + -0.061767578, + -0.050048828, + 0.071777344, + -0.063964844, + 0.011657715, + 0.088378906, + 0.10058594, + 0.0703125, + 0.033203125, + -0.11621094, + 0.038085938, + 0.028442383, + -0.0859375, + -0.01977539, + -0.06933594, + 0.03125, + -0.16796875, + -0.03149414, + -0.19335938, + 0.11816406, + -0.080078125, + -0.53515625, + 0.064453125, + -0.06640625, + 0.009033203, + -0.140625, + 0.05126953, + 0.016235352, + -0.1015625, + 0.12597656, + 0.009521484, + -0.05810547, + -0.15625, + -0.24414062, + 0.009094238, + -0.095703125, + -0.043945312, + 0.075683594, + -0.028198242, + 0.05029297, + 0.08544922, + -0.010253906, + -0.0033721924, + -0.115234375, + -0.015014648, + -0.09814453, + -0.018066406, + 0.026855469, + 0.114746094, + -0.1171875, + 0.072265625, + 0.09472656, + 0.04711914, + -0.04663086, + 0.025390625, + -0.0859375, + -0.037109375, + -0.041503906, + -0.09814453, + 0.12792969, + 0.3671875, + 0.038330078, + -0.013366699, + 0.06225586, + 0.13964844, + -0.09082031, + -0.076171875, + -0.036621094, + 0.15625, + 0.028320312, + 0.056396484, + 0.03955078, + 0.13574219, + -0.03564453, + -0.075683594, + -0.061279297, + -0.09814453, + -0.008300781, + -0.10888672, + -0.080566406, + 0.16503906, + -0.02368164, + -0.014770508, + -0.080566406, + -0.0054016113, + 0.017700195, + 0.099609375, + -0.043945312, + -0.15625, + 0.07763672, + 0.022705078, + -0.06542969, + 0.057373047, + 13.0, + 0.100097656, + 0.0625, + -0.034179688, + -0.13574219, + 0.1796875, + 0.110839844, + 0.111328125, + 0.057617188, + -0.14550781, + 0.08105469, + -0.018066406, + 0.004760742, + 0.1640625, + -0.03930664, + -0.061279297, + 0.05078125, + 0.027832031, + 0.07421875, + 0.064941406, + -0.15820312, + 0.06640625, + 0.051513672, + -0.079589844, + 0.057861328, + 0.0115356445, + 0.040283203, + 0.055908203, + 0.13964844, + 0.044677734, + -0.16113281, + -0.0859375, + 0.036621094, + -0.006713867, + 0.030883789, + -0.032470703, + 0.114746094, + 0.09033203, + 0.54296875, + 0.05029297, + -0.10205078, + 0.22167969, + -0.021728516, + 0.07324219, + -0.017700195, + -0.19628906, + 0.040283203, + 0.008361816, + -0.060791016, + 0.16601562, + 0.0065612793, + 0.02758789, + 0.1328125, + 0.1328125, + -0.06982422, + 0.10839844, + 0.06347656, + -0.022460938, + 0.048339844, + -0.0079956055, + 0.059326172, + 0.06640625, + -0.016967773, + -0.012756348, + -0.037841797, + 0.06640625, + 0.0028381348, + -0.010192871, + 0.072753906, + -0.060546875, + 0.08154297, + -0.048339844, + -0.06298828, + -0.09082031, + -0.016113281, + 0.005584717, + -0.05493164, + -0.008972168, + -0.034423828, + -0.015625, + -0.13769531, + -0.07421875, + 0.048828125, + 0.12890625, + -0.03955078, + -0.0033721924, + 0.06591797, + -0.0126953125, + 0.06689453, + 0.037109375, + 0.09716797, + 0.18847656, + 0.38085938, + 0.08105469, + -0.08691406, + 0.023071289, + -0.045898438, + -0.3984375, + -0.110839844, + -0.099121094, + 0.11669922, + 0.016113281, + 1.1640625, + -0.14941406, + -0.060546875, + 0.05810547, + -0.025756836, + 0.040039062, + 0.13183594, + 0.15527344, + -0.07421875, + -0.015563965, + -0.10986328, + -0.027832031, + 0.13769531, + 0.087402344, + 0.06933594, + 0.27734375, + 0.056640625, + 0.030151367, + 0.10644531, + 0.04296875, + -0.0040893555, + -0.035888672, + -0.10253906, + -0.033935547, + 0.17578125, + 0.08496094, + 0.12060547, + -0.125, + -0.029418945, + -0.021850586, + 0.10253906, + -0.09765625, + -0.03466797, + -0.03100586, + 0.068359375, + 0.0703125, + -0.008544922, + -0.012451172, + 0.12207031, + 0.12402344, + 0.01373291, + -0.087402344, + -0.099121094, + 0.03515625, + 0.06591797, + 0.103027344, + -0.010070801, + 0.00021743774, + 0.051513672 + ] +} \ No newline at end of file diff --git a/speakers/eric.json b/speakers/eric.json new file mode 100644 index 0000000..68d16d6 --- /dev/null +++ b/speakers/eric.json @@ -0,0 +1,2055 @@ +{ + "name": "eric", + "description": "male_adult", + "spk_id": 2875, + "spk_emb": [ + -0.028320312, + 0.0390625, + -0.11425781, + 0.037597656, + 0.16601562, + 0.08251953, + 0.075683594, + -3.921875, + -0.05834961, + 0.039794922, + 0.057861328, + 0.16796875, + -0.2109375, + 0.04663086, + -0.030273438, + -0.06542969, + -0.013183594, + -0.024414062, + -0.040527344, + -0.068847656, + -0.17675781, + 0.045898438, + -0.016479492, + -0.08251953, + -0.10839844, + -0.11816406, + 0.06933594, + 0.20507812, + -0.11669922, + 0.00090026855, + 0.00004673004, + -0.15917969, + 0.020507812, + 0.023803711, + 0.22070312, + -0.13867188, + 0.05419922, + 0.04711914, + 0.06982422, + 0.03955078, + 0.07128906, + -0.1171875, + -0.047851562, + -0.40039062, + -0.07470703, + -0.06738281, + -0.07861328, + -0.060791016, + -0.08154297, + 0.0025634766, + 0.088378906, + -0.13183594, + -0.056640625, + 0.025024414, + 0.20507812, + 0.106933594, + -0.08251953, + 0.0038757324, + 0.0036773682, + -0.06347656, + -0.024536133, + -0.015014648, + 0.07519531, + 0.012573242, + 0.111328125, + 0.12597656, + -0.059814453, + -0.06738281, + -0.022216797, + 0.32617188, + -0.16992188, + 0.10986328, + -0.10253906, + 0.0703125, + -0.115722656, + -0.1171875, + -0.12792969, + -0.103515625, + 0.13378906, + -0.057861328, + -0.0064697266, + 0.0009727478, + -0.011962891, + 0.11035156, + -0.0056152344, + 0.17578125, + 0.18847656, + 0.041992188, + -0.002090454, + 0.050048828, + -0.055908203, + -0.025146484, + -0.03540039, + 0.064453125, + 0.08691406, + 0.13867188, + -0.100097656, + -0.0146484375, + 0.2734375, + 0.18554688, + 0.0058288574, + -0.125, + 0.08886719, + -0.012512207, + -0.040527344, + 0.08154297, + -0.041503906, + -0.12988281, + -0.036132812, + -0.047851562, + -0.020751953, + -0.11328125, + 0.05908203, + -0.08886719, + -0.021362305, + 0.041015625, + -0.08300781, + 0.0030822754, + -0.057128906, + 0.034179688, + 0.025756836, + 0.26367188, + 0.035888672, + -0.2578125, + 0.11816406, + -0.032226562, + -0.044189453, + 0.0056152344, + 0.060791016, + 0.060791016, + -0.099609375, + -0.091308594, + 0.028076172, + 0.04736328, + 0.05029297, + 0.05102539, + -0.016479492, + -0.041748047, + 0.12060547, + -0.16210938, + -0.17382812, + 0.13476562, + 0.21875, + -0.02368164, + -0.028564453, + 0.23535156, + -0.107910156, + 0.060058594, + -0.095214844, + 0.017089844, + 0.17578125, + 0.07421875, + -0.08544922, + 0.15917969, + -0.039794922, + 0.016601562, + 0.3046875, + 0.15039062, + 0.1484375, + -0.27539062, + -0.07861328, + -0.07763672, + -0.15722656, + -0.12158203, + 0.07080078, + 0.07470703, + -4.125, + -0.1640625, + -0.084472656, + 0.052978516, + 0.09765625, + 0.044921875, + 0.014099121, + 0.119140625, + -0.072753906, + 0.0234375, + -0.02758789, + 0.1328125, + 0.07421875, + 0.09765625, + 0.13867188, + 0.18554688, + 0.041503906, + 0.016357422, + 0.048828125, + 0.0025787354, + 0.17285156, + 0.12695312, + -0.0014801025, + 0.045898438, + -0.079589844, + -0.12158203, + -0.057373047, + -0.071777344, + 0.1015625, + 0.0014953613, + 0.012756348, + 0.0024414062, + -0.060791016, + -0.056640625, + 0.018554688, + 0.19726562, + -0.048583984, + -0.08154297, + 0.08496094, + 0.04663086, + 0.21972656, + 0.10449219, + 0.111816406, + -0.32226562, + 0.07470703, + 0.17089844, + -0.08886719, + -0.02368164, + 0.08496094, + 0.10839844, + 0.09375, + -0.07373047, + -0.06542969, + -0.034179688, + -0.032958984, + 0.12792969, + -0.008605957, + 0.05029297, + 0.039794922, + 0.20800781, + -0.026367188, + -0.22949219, + 0.118652344, + 0.005645752, + 0.038330078, + 0.104003906, + -0.103027344, + -0.08105469, + -0.087890625, + 0.004333496, + 0.028686523, + -0.17578125, + -0.078125, + -0.017333984, + 0.10546875, + 0.15234375, + 0.04321289, + -0.0115356445, + -0.08105469, + -0.057373047, + 0.23925781, + 0.103027344, + 0.111816406, + -0.1171875, + 0.047607422, + -0.040283203, + -0.045898438, + 0.083984375, + -0.083496094, + -0.07910156, + 0.115234375, + -0.07763672, + 0.03857422, + 0.021484375, + -0.092285156, + 0.10253906, + -0.203125, + -0.0045776367, + -0.052246094, + -0.01550293, + -0.008972168, + 0.03857422, + -0.0007171631, + 0.016479492, + -0.067871094, + -0.05444336, + 0.035888672, + 0.008972168, + -0.091796875, + -0.05908203, + -0.06591797, + -0.03930664, + 0.029785156, + -0.11376953, + -0.012634277, + 0.028930664, + -0.021118164, + -0.033447266, + -0.049560547, + -0.064453125, + 0.114746094, + -0.30859375, + 0.083984375, + 0.14550781, + -0.140625, + -0.045166016, + 0.16015625, + 0.09033203, + -0.14355469, + -0.07763672, + -0.115722656, + -0.01928711, + -0.016967773, + 0.036132812, + 0.21875, + 0.05078125, + -0.23535156, + 0.018188477, + -0.004699707, + 0.010498047, + -0.1328125, + -0.049804688, + -0.07128906, + 0.19140625, + -0.078125, + 0.036376953, + -0.043945312, + -0.063964844, + -0.21679688, + 0.02734375, + -0.076171875, + 0.11816406, + -0.013671875, + 0.38476562, + -0.110839844, + 0.050048828, + -0.15625, + 0.010864258, + -0.171875, + 0.05908203, + -0.13476562, + 0.017822266, + -0.123046875, + -0.21582031, + -0.13867188, + -0.083984375, + 0.24121094, + 0.076660156, + -0.22851562, + 0.25585938, + -0.14257812, + 0.043701172, + 0.057617188, + 0.08984375, + -0.08984375, + 0.030273438, + 0.25195312, + 0.095214844, + -0.26757812, + -0.060302734, + 0.007232666, + -0.024291992, + 0.13574219, + -0.10205078, + -0.048095703, + 0.020751953, + 0.01940918, + -0.067871094, + 0.47460938, + -0.107421875, + -0.17773438, + -0.16601562, + -0.011352539, + -0.22363281, + 0.09082031, + -0.041748047, + 0.05883789, + 0.09375, + -0.095214844, + -0.14941406, + -0.20507812, + -0.08203125, + 0.023925781, + -0.0070495605, + -0.080566406, + 0.0014266968, + 0.060546875, + -0.16699219, + 0.09716797, + 0.09863281, + -0.0625, + 0.110839844, + 0.0056762695, + -0.048339844, + -0.004425049, + 0.05493164, + -0.00970459, + 0.032226562, + -0.07470703, + -0.03930664, + -0.15136719, + -0.068847656, + 0.0703125, + -0.079589844, + -0.049560547, + 0.0034179688, + 0.0006713867, + -0.09375, + -0.021972656, + 0.10644531, + -0.095703125, + 0.045654297, + -0.0859375, + 0.010375977, + -0.013122559, + -0.12695312, + 0.026855469, + 0.19335938, + -0.1875, + 0.061035156, + -0.0050354004, + -0.0008201599, + 0.07128906, + 0.10253906, + 0.18164062, + 0.014465332, + -0.053222656, + 0.084472656, + 0.015014648, + 0.008178711, + -0.040283203, + -0.23046875, + 0.012268066, + 0.122558594, + 0.06689453, + -0.11669922, + -0.10107422, + -0.02758789, + 0.04345703, + 0.421875, + -0.0703125, + 0.072265625, + 0.095703125, + -0.07910156, + -0.12792969, + -0.13671875, + -0.14453125, + 0.041259766, + -0.22558594, + -0.0625, + 0.036132812, + -0.49023438, + -0.03149414, + -0.028930664, + 0.11328125, + 0.020263672, + -0.012084961, + -0.015563965, + 0.041503906, + 0.044433594, + 0.07080078, + -0.10546875, + 0.088378906, + -0.014892578, + -0.057617188, + -0.0703125, + -0.11621094, + -0.19238281, + -0.08203125, + 0.111816406, + -0.03540039, + -0.08935547, + -0.0043945312, + -0.020385742, + 0.037353516, + -0.067871094, + -0.15527344, + -0.17285156, + 0.0061950684, + -0.12792969, + -0.041992188, + 0.0038146973, + -0.09082031, + -0.00075912476, + -0.011657715, + -0.08984375, + -0.16699219, + -0.055664062, + 0.029418945, + 0.049072266, + 0.14941406, + -0.16113281, + 0.064453125, + -0.03955078, + 0.06933594, + -0.024291992, + 0.017944336, + 0.028198242, + -0.012268066, + -0.095214844, + 0.045898438, + 0.03149414, + -0.015380859, + 0.10107422, + 0.35742188, + 0.12890625, + -0.12060547, + 0.061279297, + -0.12792969, + -0.20898438, + 0.030151367, + 0.041992188, + 0.022216797, + -0.57421875, + -0.035888672, + 0.05029297, + -0.15234375, + 0.13574219, + 0.119628906, + 0.02722168, + 0.012573242, + 0.06933594, + 0.014343262, + -0.012939453, + 0.03173828, + -0.14257812, + 0.0019073486, + -0.03173828, + -0.12158203, + -0.07714844, + 0.12792969, + -0.21777344, + -0.14355469, + 0.04711914, + -0.009521484, + 0.114746094, + 0.11279297, + 0.05029297, + 0.026977539, + -0.022460938, + 0.14648438, + -0.11328125, + -0.060546875, + 0.014221191, + -0.0054016113, + -0.12207031, + 0.026000977, + 0.021972656, + 0.012084961, + 0.11230469, + -0.060546875, + 0.14257812, + 0.044433594, + -0.091308594, + -0.17871094, + 0.068359375, + 0.038085938, + 0.08886719, + 0.1015625, + 0.02746582, + 0.040527344, + -0.08544922, + 0.087402344, + -0.122558594, + -0.095703125, + -0.006225586, + 0.31054688, + -0.078125, + -0.16503906, + -0.0019378662, + -0.13378906, + -0.040527344, + -0.08251953, + 0.07421875, + -0.1015625, + 0.025146484, + 0.12890625, + -0.17382812, + 0.067871094, + 0.014282227, + -0.053710938, + -0.025268555, + -0.009094238, + 0.18847656, + -0.052734375, + -0.045898438, + -0.14160156, + -0.23242188, + 0.072265625, + 0.009765625, + 0.032470703, + -0.030639648, + -0.060058594, + -0.04272461, + -0.02722168, + -0.0020751953, + 0.012145996, + 0.00018405914, + -0.020751953, + 0.15332031, + -0.084472656, + 0.061523438, + -0.103515625, + -0.049560547, + 0.12792969, + 0.14160156, + -0.007019043, + 0.18945312, + 0.020385742, + 0.0087890625, + 0.041992188, + -0.06591797, + 0.22363281, + 0.14453125, + -0.028320312, + 0.10546875, + -0.040283203, + 0.09472656, + 0.12011719, + -0.0859375, + 0.04638672, + 0.015319824, + 0.106933594, + 0.051513672, + 0.15136719, + -0.021850586, + -0.13574219, + -0.11767578, + -0.064453125, + 0.036132812, + 0.080566406, + 0.071777344, + -0.04345703, + 0.031982422, + -0.017089844, + -0.2890625, + 0.04638672, + -0.061279297, + 0.083984375, + 0.038085938, + 0.031982422, + 0.067871094, + 0.13476562, + 0.05029297, + -0.25, + -0.040771484, + -0.04711914, + 0.03173828, + 0.1796875, + -0.061279297, + 0.17382812, + -0.020751953, + -0.011169434, + 0.0024871826, + 0.017700195, + 0.15820312, + -0.024658203, + -0.0049743652, + -0.33789062, + 0.19824219, + 0.055908203, + -0.021240234, + 0.0033874512, + 0.041259766, + -0.01977539, + 0.017333984, + 0.12597656, + -0.03515625, + -0.27734375, + -0.110839844, + -0.033691406, + 0.018066406, + -0.453125, + 0.036132812, + 0.09765625, + -0.048095703, + 0.05883789, + 0.13671875, + -0.16015625, + 0.006134033, + -0.095214844, + 0.010681152, + -0.11816406, + -0.010681152, + -0.15722656, + -0.13085938, + 0.055908203, + -0.18164062, + -0.029907227, + -0.021118164, + 0.076171875, + 0.08984375, + 0.07470703, + -0.053222656, + -0.05102539, + 0.067871094, + -0.11669922, + -0.109375, + -0.08935547, + 0.11669922, + -0.11279297, + 0.021484375, + -0.107910156, + -0.0068359375, + -0.0048828125, + 0.08251953, + -0.010498047, + 0.04272461, + -0.13769531, + -0.047607422, + -0.091796875, + 0.0390625, + -0.055664062, + -0.11669922, + -0.010253906, + -0.026611328, + -0.026855469, + -0.0028839111, + -0.07421875, + 0.067871094, + 0.02734375, + -0.123046875, + -0.1875, + 0.0059814453, + -0.07861328, + 0.039794922, + -0.091796875, + 0.13183594, + -0.38867188, + 0.010131836, + -0.018920898, + -0.095703125, + 0.19433594, + -0.20605469, + 0.13671875, + 0.10986328, + 0.05517578, + -0.060302734, + 0.12890625, + -0.053955078, + -0.0390625, + 0.56640625, + -0.03466797, + 0.034423828, + -0.018066406, + 0.035888672, + -0.09765625, + 0.14746094, + -0.028930664, + -0.010009766, + 0.083496094, + 0.040771484, + 0.0017089844, + -0.12988281, + -0.021728516, + -0.18164062, + -0.060791016, + -0.09277344, + 0.07421875, + -0.12890625, + -0.006072998, + 0.033935547, + 0.096191406, + 0.05029297, + 0.08496094, + -0.060546875, + 0.029052734, + -0.015380859, + -0.005584717, + -0.03564453, + 0.04638672, + -0.080566406, + -0.076171875, + -0.013793945, + -0.00088119507, + -0.0015869141, + 0.12988281, + 0.12158203, + 0.057617188, + 0.0095825195, + -0.028442383, + -0.032470703, + 0.024658203, + -0.12402344, + 0.0061035156, + -0.06298828, + 0.080566406, + -0.014709473, + -0.11230469, + -0.13574219, + -0.09423828, + -0.033935547, + 0.11816406, + -0.032226562, + -0.008056641, + -0.037109375, + -0.045410156, + 0.00289917, + 0.050048828, + 0.034423828, + 0.17285156, + 0.028198242, + 0.13183594, + 0.0053710938, + -0.06542969, + 0.0033874512, + 0.08935547, + -0.059570312, + 0.07128906, + 0.13769531, + 0.19726562, + 0.06738281, + -0.04248047, + 0.115234375, + -0.038330078, + -0.110839844, + -0.14257812, + 0.115722656, + -0.016235352, + -0.19921875, + 0.25585938, + 0.071777344, + 0.19628906, + 0.0016479492, + -0.07714844, + 0.015014648, + -0.088378906, + 0.012756348, + 0.119628906, + -0.15136719, + -0.08691406, + 0.33398438, + 0.026611328, + 0.04248047, + 0.020385742, + -0.17480469, + -0.031982422, + -0.29101562, + -0.0069885254, + -0.06738281, + -0.057373047, + 0.07324219, + 0.08203125, + -0.17285156, + 0.028930664, + 0.03173828, + -0.053466797, + 0.13183594, + -0.08203125, + -0.119628906, + -0.11279297, + 0.115722656, + -0.061035156, + 0.24609375, + -0.10546875, + -0.05126953, + 0.15332031, + 0.053710938, + 0.66015625, + 0.16699219, + -0.025512695, + 0.028930664, + -0.044433594, + 0.013549805, + 0.07324219, + 0.78125, + 0.10888672, + -0.038085938, + 0.008056641, + -0.071777344, + 0.015014648, + -0.044189453, + -0.16113281, + -0.025878906, + 0.43945312, + 0.068359375, + 0.05053711, + -0.10839844, + -0.017089844, + 0.02331543, + 0.03491211, + 0.16210938, + 0.011474609, + 0.020996094, + -0.071777344, + -0.2109375, + 0.092285156, + -0.037841797, + -0.064453125, + 0.15039062, + 0.091796875, + -0.004211426, + 0.008850098, + -0.122558594, + -0.042236328, + 0.24804688, + -0.021728516, + 0.088378906, + 0.0057678223, + -0.16113281, + 0.10595703, + 0.053955078, + -0.095214844, + 0.060058594, + 0.15722656, + 0.057373047, + -0.13671875, + 0.16992188, + 0.08154297, + 0.12890625, + 0.030151367, + -0.22070312, + 0.0057373047, + 0.036865234, + -0.060302734, + 0.032226562, + -0.033203125, + 0.036376953, + 0.007446289, + -0.038330078, + -0.071777344, + -0.38476562, + -0.10253906, + -0.03515625, + -0.01953125, + -0.05126953, + 0.12060547, + -0.088378906, + 0.07080078, + 0.16601562, + -0.04296875, + -0.007507324, + 0.0546875, + -0.049804688, + 0.016723633, + 0.06201172, + 0.060791016, + 0.1171875, + 0.08642578, + 0.033203125, + -0.023803711, + -0.008300781, + -0.114746094, + 0.12597656, + -0.140625, + -0.23144531, + -0.021240234, + 0.013549805, + -0.045166016, + 0.041259766, + -0.036376953, + 0.22460938, + 0.0859375, + -0.04248047, + 0.038330078, + 0.08496094, + -0.018798828, + 0.036376953, + -0.10205078, + 0.087890625, + -0.25195312, + -0.04296875, + -0.0234375, + 0.040283203, + 0.123046875, + 0.07324219, + -0.036621094, + 0.03540039, + -0.32421875, + -0.037109375, + 0.080566406, + 0.0546875, + -0.0034179688, + 0.6171875, + 0.11816406, + 0.11279297, + 0.040771484, + -0.02355957, + 0.15917969, + -0.13183594, + -0.034423828, + -0.0107421875, + 0.0074157715, + 0.037109375, + 0.049316406, + -0.053955078, + -0.0703125, + -0.114746094, + 0.05029297, + -0.203125, + -0.20117188, + 0.026855469, + 0.20996094, + -0.09814453, + 0.20800781, + 0.01586914, + 0.14257812, + 0.045898438, + -0.19921875, + 0.020751953, + -0.18945312, + -0.13378906, + -0.100097656, + -0.122558594, + 0.034179688, + 0.015014648, + 0.032226562, + -0.17285156, + 0.0703125, + -0.06201172, + -0.095214844, + -0.23632812, + -0.04272461, + 0.017333984, + -0.16308594, + -0.11816406, + -0.068359375, + 0.15917969, + -0.009338379, + -0.106933594, + -0.099609375, + -0.038330078, + 0.44921875, + 0.03564453, + -0.1796875, + -0.07861328, + 0.052734375, + -0.076660156, + -0.08935547, + 0.030151367, + 0.04736328, + -0.038085938, + 0.103027344, + 0.04711914, + -0.03881836, + 0.109375, + 0.07763672, + 0.010620117, + 0.03540039, + 0.020263672, + 0.025878906, + 0.013549805, + 0.083984375, + 0.08935547, + 0.04638672, + -0.16113281, + -0.13085938, + 0.10595703, + -0.12451172, + -0.10253906, + -0.032714844, + -0.020629883, + -0.008361816, + 0.010070801, + 0.04296875, + 0.022949219, + -0.16992188, + -0.038085938, + -0.0019683838, + 0.16796875, + 0.06542969, + 0.019897461, + -0.21777344, + 0.18066406, + -0.15527344, + -0.22949219, + -0.00592041, + 0.15722656, + 0.00579834, + -0.13378906, + -0.03564453, + -0.040771484, + -0.20117188, + 0.009521484, + 0.011108398, + -0.10498047, + 0.122558594, + -0.037109375, + -0.14355469, + 0.07324219, + 0.036621094, + -0.15722656, + -0.015625, + 0.2734375, + 0.55078125, + 0.12011719, + -0.032470703, + -0.10546875, + 0.045410156, + 0.034179688, + 0.0138549805, + 0.58203125, + -0.08300781, + 0.031982422, + -0.03112793, + -0.08154297, + 0.24902344, + -0.020996094, + 0.22265625, + -0.37304688, + 0.11230469, + -0.04663086, + 0.04321289, + 0.007507324, + -0.057617188, + -0.038085938, + 0.107910156, + 0.032958984, + -0.052001953, + 0.016357422, + -0.087890625, + -0.063964844, + 0.0008125305, + -0.012756348, + -0.091308594, + 0.12451172, + -0.09326172, + -0.10644531, + -0.23828125, + 0.24804688, + 0.04711914, + -0.064941406, + 0.0029754639, + -0.008361816, + 0.025634766, + 0.07470703, + -0.14550781, + 0.16210938, + -0.03515625, + 0.0115356445, + -0.010559082, + 0.111816406, + -0.03125, + -0.07861328, + -0.075683594, + -0.017944336, + -0.115234375, + -0.103515625, + 0.033691406, + -0.11669922, + -0.078125, + -0.07324219, + -0.14648438, + -0.014099121, + -0.0390625, + -0.1171875, + -0.11621094, + 0.03540039, + 0.15234375, + 0.12451172, + 0.011352539, + -0.060546875, + 0.022705078, + -0.3203125, + 0.002609253, + 0.080078125, + -0.0064086914, + 0.18457031, + 0.041015625, + 0.046142578, + -0.087402344, + 0.008544922, + 0.008605957, + -0.06689453, + 0.1640625, + 0.29882812, + 0.027709961, + -0.04272461, + -0.12402344, + -0.19140625, + 0.06201172, + 0.052001953, + 0.18945312, + -0.0031585693, + -0.05444336, + -0.24707031, + -0.028930664, + 0.028320312, + -0.047607422, + -0.05126953, + -0.095703125, + 0.12011719, + 0.122558594, + 0.02355957, + -0.024536133, + 0.0012130737, + 0.13769531, + -0.17382812, + 0.13476562, + -0.08105469, + -0.40039062, + -0.09863281, + -0.035888672, + 0.006866455, + -0.07763672, + 0.07861328, + -0.03125, + 0.20410156, + -0.17089844, + 0.07470703, + 0.13085938, + 0.0064086914, + -0.07910156, + -0.07080078, + -0.13769531, + -0.08203125, + 0.026733398, + 0.009277344, + -0.07421875, + 0.11669922, + -0.052978516, + 0.0035095215, + 0.052001953, + -0.0028076172, + -0.12109375, + -0.0087890625, + 0.034179688, + -0.017578125, + 0.07128906, + 0.06298828, + -0.10205078, + 0.019042969, + 0.037597656, + 0.049560547, + 0.088378906, + -0.13085938, + -0.0036468506, + -0.20117188, + -0.021606445, + 0.012878418, + -0.0703125, + -0.057617188, + -0.080078125, + -0.13867188, + 0.099609375, + -0.17089844, + -0.017822266, + 0.053710938, + -0.060302734, + 0.019042969, + 0.32421875, + -0.037353516, + 0.049072266, + 0.030029297, + -0.06738281, + -0.35742188, + -0.10498047, + -0.057617188, + 0.12060547, + -0.0119018555, + 0.107421875, + -0.07421875, + -0.016113281, + -0.0029296875, + -0.057373047, + 0.17578125, + 0.03515625, + 0.123046875, + 0.053222656, + 0.021362305, + 0.13476562, + 0.099121094, + -0.21386719, + 0.17871094, + -0.010498047, + -0.00077438354, + -0.021240234, + -0.02368164, + 0.033691406, + 0.017944336, + -0.119140625, + 0.110839844, + -0.013061523, + -0.08105469, + 0.26757812, + 0.020263672, + -0.078125, + -0.114746094, + -0.111816406, + 0.09375, + -0.013427734, + 0.114746094, + 0.061523438, + 0.053222656, + -0.10205078, + 0.041748047, + -0.072753906, + -0.02709961, + -0.14355469, + 0.06738281, + -0.052246094, + -0.13867188, + 0.114746094, + -0.20507812, + 0.02722168, + -0.27734375, + -0.023071289, + -0.111816406, + 0.008666992, + 0.032714844, + -0.057373047, + 0.11230469, + -0.14160156, + 0.076171875, + -0.036376953, + 0.107421875, + -0.049804688, + -0.017089844, + 0.02709961, + 0.022338867, + 0.07470703, + -0.05493164, + 0.091308594, + 0.045410156, + 0.052246094, + -0.029296875, + -0.13378906, + -0.06298828, + 0.030639648, + 0.037353516, + -0.07324219, + -0.056396484, + 0.079589844, + -0.28515625, + 0.111816406, + 0.04638672, + 0.02709961, + 0.11767578, + 0.056396484, + -0.20605469, + 0.06738281, + 0.008972168, + -0.043701172, + 0.03466797, + 0.028686523, + -0.020019531, + 0.08544922, + -0.01574707, + -0.028808594, + -0.16113281, + -0.029296875, + 0.036376953, + 0.026855469, + 0.072753906, + -0.017822266, + -0.05493164, + 0.07373047, + 0.18847656, + 0.3515625, + -0.12011719, + 0.048339844, + -0.10498047, + 0.060302734, + -0.08154297, + 0.071777344, + 0.006439209, + 0.04345703, + -0.13769531, + -0.104003906, + 0.08691406, + -0.025146484, + 0.0039367676, + 0.052246094, + -0.71484375, + -0.083496094, + 0.03564453, + -0.022705078, + -0.009460449, + -0.022949219, + -0.02331543, + 0.039794922, + -0.0049743652, + 0.040771484, + -0.052001953, + 0.06689453, + -0.028686523, + -0.07421875, + -0.047607422, + 0.091796875, + 0.072753906, + -0.10888672, + 0.07470703, + -0.115234375, + -0.016601562, + -0.024169922, + -0.091796875, + 0.08300781, + -0.063964844, + 0.09375, + 0.20996094, + 0.11279297, + -0.026367188, + 0.041015625, + -0.048828125, + -0.013671875, + -0.33203125, + 0.07128906, + -0.03930664, + 0.1640625, + -0.013549805, + -0.18457031, + 0.07763672, + -0.10498047, + -0.038085938, + -0.056152344, + 0.008361816, + 0.023803711, + -0.0065307617, + -0.075683594, + 0.10595703, + -0.119140625, + -0.049072266, + 0.10839844, + -0.0703125, + 0.044921875, + 2.234375, + 0.11669922, + 0.053955078, + 0.12792969, + 0.0056152344, + -0.033691406, + -0.06738281, + -0.111816406, + -0.02709961, + -0.10498047, + 0.048583984, + 0.012390137, + -0.014343262, + 0.051757812, + -0.13867188, + 0.08154297, + -0.01586914, + 0.080078125, + -0.03930664, + 0.28125, + -0.028076172, + 0.08203125, + -0.026367188, + -0.14941406, + -0.140625, + 0.072753906, + 0.010925293, + 0.080078125, + -0.14648438, + -0.05102539, + 0.018920898, + 0.052246094, + -0.087402344, + -0.18652344, + -0.09716797, + 0.078125, + 0.20410156, + 0.049072266, + 0.10205078, + 0.17382812, + -0.0050354004, + -0.234375, + -0.08203125, + -0.044189453, + 0.0054016113, + -0.040527344, + -0.05419922, + -0.014221191, + -0.08691406, + 0.030395508, + -0.048095703, + -0.029785156, + -0.0154418945, + 0.046142578, + 0.203125, + 0.11230469, + 0.091308594, + -0.01586914, + -0.06738281, + 0.13671875, + 0.10888672, + -0.06933594, + 0.09375, + -0.041503906, + 0.03881836, + 0.15527344, + 0.029296875, + -0.06347656, + 0.10986328, + -0.03125, + 0.004760742, + 0.109375, + 0.06225586, + -0.15527344, + -0.057861328, + 0.15625, + -0.049072266, + -0.11328125, + 0.12597656, + -0.03173828, + 0.026855469, + 0.5, + 0.05102539, + 0.29101562, + 0.12060547, + 0.028686523, + 0.53515625, + 0.0024108887, + -0.0042419434, + 0.18457031, + -0.083984375, + -0.026367188, + -0.020874023, + -0.028198242, + -0.020019531, + -0.010498047, + 0.40429688, + -0.048095703, + -0.10888672, + 0.057128906, + -0.11279297, + 0.052734375, + 0.026977539, + -0.17382812, + 0.078125, + -0.0859375, + 0.18652344, + -0.10449219, + -0.55859375, + 0.0703125, + -0.059326172, + 0.036132812, + -0.03515625, + 0.453125, + -0.052490234, + -0.014526367, + -0.04272461, + 0.018920898, + 0.025390625, + 0.07470703, + 0.12890625, + -0.048339844, + -0.018554688, + -0.06591797, + 0.078125, + 0.040039062, + -0.005859375, + -0.024169922, + 0.12158203, + -0.1484375, + -0.106933594, + -0.022827148, + -0.030761719, + 0.17089844, + 0.04345703, + -0.38476562, + 0.030761719, + 0.00004220009, + 0.10205078, + -0.0069885254, + 0.20117188, + 0.12695312, + 0.052246094, + 0.140625, + -0.27539062, + 0.02355957, + 0.09326172, + 0.021606445, + 0.14160156, + -0.17675781, + -0.0037384033, + -0.07861328, + -0.08203125, + -0.106933594, + 0.1484375, + 0.026611328, + 0.24609375, + 0.45507812, + -0.13671875, + -0.028808594, + -0.07373047, + 0.060791016, + 0.037353516, + 0.045898438, + -0.1328125, + 0.087402344, + -0.23828125, + -0.032470703, + 0.08642578, + 0.07324219, + -0.0034637451, + 0.06347656, + 0.103515625, + -0.013916016, + 0.044677734, + 0.16308594, + 0.6328125, + -0.068847656, + -0.033203125, + 0.079589844, + -0.0036468506, + 0.034179688, + -0.107421875, + -0.007873535, + -0.1484375, + -0.10986328, + -0.000207901, + 0.114746094, + 0.12158203, + -0.05908203, + -0.002029419, + 0.080078125, + 0.022094727, + 0.010620117, + 0.06933594, + 0.0038452148, + 0.119140625, + -0.046875, + -0.106933594, + -0.04736328, + -0.0054626465, + 0.08251953, + -0.036621094, + 0.060791016, + -0.09716797, + 0.021606445, + 0.0077819824, + -0.22167969, + 0.10253906, + 0.047607422, + -0.00078201294, + 0.16894531, + 0.087402344, + 0.020507812, + 0.09716797, + 0.053955078, + -0.0095825195, + 0.57421875, + -0.125, + -0.016845703, + -0.040283203, + -0.1640625, + 0.014709473, + 0.07861328, + 0.16699219, + -0.031982422, + 0.028320312, + -0.05419922, + -0.04638672, + 0.114746094, + 0.14160156, + -0.0012969971, + -0.049804688, + 0.0017776489, + 0.09423828, + 0.06298828, + 0.022583008, + -0.11376953, + 0.10498047, + -0.06738281, + 0.0053710938, + 0.08984375, + 0.025878906, + -0.05493164, + 0.045410156, + 0.19824219, + -0.13378906, + -0.11767578, + -0.06933594, + 0.46679688, + 0.107421875, + 0.030273438, + 0.035888672, + 0.029418945, + 0.123046875, + 0.3671875, + 0.09814453, + 0.020751953, + -0.20214844, + 0.055908203, + -0.10449219, + 0.091796875, + -0.12011719, + -0.16308594, + 0.18554688, + -0.021118164, + -0.026489258, + 0.01159668, + -0.07519531, + -0.063964844, + -0.09667969, + -0.06225586, + 0.08251953, + -0.18359375, + 0.07373047, + -0.059570312, + 0.13476562, + 0.08105469, + -0.068847656, + 0.00579834, + -0.018432617, + -0.109375, + -0.18945312, + 0.07470703, + 0.05102539, + -0.048095703, + -0.079589844, + 0.012207031, + 0.00088500977, + 0.04272461, + 0.04345703, + -0.29882812, + 0.057373047, + 0.020263672, + -0.55078125, + 0.03149414, + -0.1328125, + 0.055664062, + -0.060058594, + -0.0073547363, + 0.032470703, + 0.13964844, + -0.026855469, + -0.12109375, + 0.10253906, + 0.024047852, + 0.06347656, + -0.045166016, + 0.010620117, + 0.07910156, + 0.08300781, + 0.013122559, + 0.12402344, + 0.09814453, + -0.052490234, + -0.578125, + -0.07861328, + 0.33984375, + 0.044921875, + 0.017089844, + -0.016967773, + 0.14941406, + 0.06591797, + 0.055908203, + -0.0546875, + 0.0023345947, + -0.111328125, + 0.04296875, + -0.009887695, + 0.02758789, + 0.060546875, + -0.03491211, + 0.04321289, + -0.047607422, + 0.03857422, + -0.061279297, + -0.15917969, + 0.009216309, + -0.10449219, + 0.051513672, + -0.10205078, + -0.15917969, + 0.00016021729, + -0.104003906, + -0.53515625, + -0.125, + 0.53125, + 0.096191406, + 0.013061523, + -0.12792969, + -0.103027344, + -0.0126953125, + -0.018310547, + -0.2421875, + -0.044677734, + -0.091308594, + -0.008911133, + 0.031982422, + -0.17675781, + 0.11621094, + 0.057373047, + -0.07128906, + -0.04248047, + 0.10253906, + -0.17773438, + 0.076660156, + 0.055419922, + 0.083496094, + -0.17675781, + 0.05517578, + 0.044921875, + 0.076660156, + -0.08886719, + 0.08886719, + 0.045898438, + -0.078125, + -0.06542969, + 0.107421875, + -0.033203125, + -0.083496094, + 0.02722168, + 0.052001953, + -0.032958984, + 0.03955078, + -0.07373047, + -0.07763672, + -0.076660156, + 0.015563965, + 0.021606445, + -0.09472656, + -0.08886719, + 0.004211426, + 0.064941406, + -0.053466797, + 0.0546875, + 0.24707031, + 0.017211914, + 0.026977539, + -0.099609375, + -0.016113281, + -0.011474609, + -0.012878418, + -0.15625, + 0.08203125, + 0.24707031, + 0.08984375, + 0.07763672, + 0.13085938, + -0.0005340576, + -0.12695312, + 0.09667969, + 0.018798828, + 0.018676758, + 0.18261719, + 0.029663086, + 0.025756836, + 0.03125, + -0.11230469, + 0.016723633, + -0.032714844, + -0.09716797, + -0.14355469, + 0.10546875, + -0.107421875, + -0.60546875, + 0.07080078, + -0.05834961, + 0.038085938, + 0.033935547, + 0.008728027, + 0.07373047, + -0.084472656, + 0.048583984, + -0.17382812, + -0.060791016, + -0.015136719, + -0.015991211, + 0.08496094, + -0.13574219, + 0.045654297, + 0.03100586, + -0.04711914, + 0.10546875, + 0.045654297, + -0.12695312, + 0.05859375, + -0.016967773, + -0.068847656, + 0.072265625, + -0.041259766, + 0.07910156, + -0.052490234, + 0.017333984, + 0.123535156, + 0.19238281, + 0.06982422, + -0.11816406, + -0.22753906, + 0.007171631, + 0.07373047, + 0.033691406, + -0.16992188, + 0.071777344, + 0.29882812, + -0.10449219, + 0.19628906, + 0.032470703, + 0.26367188, + 0.030883789, + 0.14550781, + 0.026367188, + -0.114746094, + 0.14355469, + 0.27539062, + 0.021240234, + 0.1015625, + -0.0023040771, + 0.026245117, + -0.009033203, + -0.026489258, + 0.18945312, + -0.067871094, + 0.012145996, + -0.022583008, + -0.06738281, + 0.018798828, + -0.07080078, + 0.12988281, + 0.0126953125, + 0.05834961, + -0.15039062, + 0.05078125, + -0.025024414, + -0.091308594, + 0.09814453, + 0.0067443848, + 12.875, + 0.08886719, + 0.0057678223, + 0.044677734, + -0.119628906, + 0.25, + 0.08886719, + -0.036621094, + 0.020629883, + -0.10839844, + -0.05053711, + -0.020874023, + 0.02734375, + 0.033691406, + 0.09375, + 0.13378906, + 0.125, + 0.14453125, + -0.024536133, + 0.0039978027, + -0.04272461, + 0.096191406, + 0.16601562, + -0.16015625, + 0.18261719, + 0.04248047, + 0.12060547, + -0.12792969, + 0.110839844, + 0.18066406, + -0.08251953, + 0.02722168, + 0.07421875, + 0.056640625, + 0.119140625, + -0.09423828, + 0.10058594, + 0.08203125, + 0.059326172, + -0.063964844, + -0.12988281, + 0.32226562, + -0.057617188, + 0.03881836, + 0.04248047, + -0.046142578, + 0.00592041, + 0.032958984, + -0.0859375, + 0.03955078, + -0.01940918, + -0.06982422, + 0.106933594, + 0.20507812, + 0.03564453, + -0.00018405914, + 0.049804688, + -0.061279297, + 0.084472656, + 0.016601562, + -0.00062179565, + 0.06689453, + 0.017700195, + -0.028564453, + -0.043945312, + 0.07421875, + 0.03881836, + 0.047851562, + 0.17773438, + -0.009765625, + -0.036865234, + -0.09326172, + -0.08496094, + -0.07080078, + 0.04272461, + -0.012268066, + -0.08154297, + -0.006439209, + -0.16894531, + -0.09863281, + 0.052490234, + 0.015380859, + -0.07128906, + 0.20410156, + -0.031982422, + 0.0134887695, + 0.14453125, + -0.037109375, + 0.051757812, + 0.004211426, + 0.0006866455, + 0.022216797, + 0.7734375, + 0.12158203, + -0.15332031, + -0.09423828, + 0.040527344, + -0.58984375, + 0.011230469, + -0.13476562, + 0.072265625, + -0.002105713, + 1.375, + -0.009216309, + 0.064941406, + -0.04638672, + 0.026123047, + -0.024169922, + -0.014770508, + 0.010314941, + 0.052978516, + -0.060791016, + -0.122558594, + 0.012268066, + 0.067871094, + 0.09667969, + -0.1953125, + -0.015380859, + -0.03857422, + 0.0703125, + 0.13574219, + 0.13378906, + 0.010131836, + 0.12792969, + -0.038330078, + -0.028198242, + 0.08203125, + -0.038330078, + 0.09375, + -0.15917969, + -0.00030326843, + 0.064453125, + 0.08691406, + -0.09667969, + -0.099121094, + -0.018066406, + 0.036621094, + 0.103515625, + 0.09814453, + -0.022460938, + 0.02319336, + -0.06738281, + 0.09472656, + 0.080566406, + -0.049804688, + -0.0031280518, + -0.020507812, + 0.036621094, + -0.03564453, + 0.14453125, + 0.103027344 + ] +} \ No newline at end of file diff --git a/speakers/index.json b/speakers/index.json new file mode 100644 index 0000000..fca0a81 --- /dev/null +++ b/speakers/index.json @@ -0,0 +1,49 @@ +{ + "speakers": [ + { + "name": "vivian", + "id": 3065, + "description": "female_adult" + }, + { + "name": "serena", + "id": 3066, + "description": "female_adult" + }, + { + "name": "uncle_fu", + "id": 3010, + "description": "male_middle" + }, + { + "name": "ryan", + "id": 3061, + "description": "male_young" + }, + { + "name": "aiden", + "id": 2861, + "description": "male_young" + }, + { + "name": "ono_anna", + "id": 2873, + "description": "female_adult" + }, + { + "name": "sohee", + "id": 2864, + "description": "female_young" + }, + { + "name": "eric", + "id": 2875, + "description": "male_adult" + }, + { + "name": "dylan", + "id": 2878, + "description": "male_adult" + } + ] +} \ No newline at end of file diff --git a/speakers/ono_anna.json b/speakers/ono_anna.json new file mode 100644 index 0000000..7999a16 --- /dev/null +++ b/speakers/ono_anna.json @@ -0,0 +1,2055 @@ +{ + "name": "ono_anna", + "description": "female_adult", + "spk_id": 2873, + "spk_emb": [ + -0.03100586, + -0.08984375, + 0.15136719, + 0.019165039, + 0.014831543, + 0.091796875, + 0.18066406, + -3.296875, + -0.037841797, + 0.20019531, + -0.08642578, + 0.18847656, + -0.033447266, + 0.021118164, + -0.19042969, + -0.044433594, + -0.01373291, + 0.36132812, + -0.18164062, + 0.08544922, + 0.06640625, + -0.015258789, + -0.008972168, + 0.021484375, + 0.057128906, + -0.014282227, + 0.08886719, + -0.004638672, + 0.00970459, + -0.010620117, + 0.033203125, + -0.075683594, + -0.012512207, + 0.103515625, + 0.16796875, + -0.045654297, + 0.014953613, + 0.06225586, + 0.033447266, + 0.022583008, + 0.056884766, + -0.20117188, + 0.024291992, + -0.096191406, + -0.0036315918, + -0.026733398, + 0.08935547, + 0.044921875, + -0.07910156, + 0.022705078, + 0.040771484, + -0.0072631836, + -0.36914062, + -0.09033203, + 0.088378906, + 0.06640625, + 0.036376953, + -0.03112793, + -0.029785156, + 0.07714844, + 0.37109375, + 0.067871094, + 0.14648438, + -0.08300781, + 0.09277344, + 0.20117188, + 0.06542969, + -0.11621094, + -0.099121094, + 0.33398438, + -0.07373047, + 0.041259766, + -0.037597656, + -0.012451172, + -0.088378906, + -0.0119018555, + 0.044677734, + -0.071777344, + -0.041015625, + -0.027832031, + -0.016479492, + -0.119140625, + -0.015991211, + -0.029296875, + -0.001876831, + -0.02722168, + 0.087890625, + 0.05859375, + 0.026000977, + 0.03491211, + -0.0010986328, + -0.08935547, + -0.024169922, + 0.052978516, + 0.08691406, + 0.052001953, + 0.025634766, + 0.11816406, + -0.02319336, + 0.09472656, + 0.072753906, + -0.0006713867, + 0.16503906, + -0.07470703, + -0.080078125, + -0.008056641, + -0.12792969, + -0.09277344, + 0.013793945, + -0.091796875, + -0.06298828, + -0.024414062, + -0.078125, + -0.095703125, + -0.20117188, + 0.056152344, + 0.13476562, + -0.03515625, + 0.043945312, + 0.044433594, + 0.15917969, + 0.061035156, + 0.078125, + 0.421875, + 0.14550781, + 0.031982422, + 0.0027313232, + -0.1875, + 0.092285156, + -0.09423828, + 0.15332031, + 0.110839844, + 0.019042969, + 0.036376953, + -0.030883789, + 0.029663086, + 0.080566406, + -0.0390625, + 0.07910156, + -0.12792969, + -0.06542969, + 0.11425781, + 0.15917969, + -0.075683594, + -0.08154297, + 0.34960938, + -0.049072266, + 0.023071289, + -0.033935547, + 0.16113281, + 0.013305664, + 0.095214844, + 0.55078125, + -0.080078125, + -0.045898438, + 0.10449219, + 0.140625, + 0.11816406, + -0.122558594, + -0.053710938, + 0.026123047, + -0.056884766, + -0.045654297, + 0.036376953, + 0.05029297, + 0.049804688, + -2.84375, + 0.06298828, + 0.02331543, + 0.030029297, + 0.12890625, + -0.04248047, + -0.009033203, + 0.015136719, + -0.16308594, + 0.019042969, + 0.061035156, + 0.16601562, + -0.014038086, + 0.15722656, + -0.05078125, + 0.25195312, + 0.07128906, + -0.10107422, + 0.12402344, + -0.0703125, + 0.044921875, + -0.080078125, + -0.09033203, + -0.037109375, + 0.063964844, + -0.06591797, + 0.00011205673, + 0.07470703, + -0.063964844, + 0.13867188, + 0.015563965, + -0.123046875, + 0.02758789, + 0.09033203, + 0.18261719, + 0.18359375, + -0.018432617, + -0.032470703, + 0.06982422, + -0.15722656, + 0.08300781, + 0.09082031, + -0.049560547, + -0.7890625, + 0.047607422, + 0.43164062, + 0.083496094, + 0.008117676, + -0.021118164, + -0.099609375, + 0.060058594, + -0.047607422, + -0.048828125, + -0.09277344, + 0.11669922, + 0.22265625, + -0.008483887, + -0.04663086, + -0.01940918, + 0.15234375, + -0.032714844, + -0.103027344, + -0.06542969, + -0.060791016, + 0.040283203, + -0.13574219, + -0.09326172, + -0.122558594, + -0.1015625, + 0.012756348, + 0.008544922, + 0.10546875, + -0.10058594, + -0.088378906, + -0.038085938, + -0.03515625, + 0.087890625, + 0.05444336, + 0.27929688, + -0.039794922, + -0.009399414, + 0.016601562, + 0.08691406, + 0.046875, + 0.0095825195, + 0.0033111572, + -0.028930664, + 0.0031433105, + -0.05029297, + -0.012329102, + 0.037353516, + -0.0026855469, + 0.088378906, + 0.0625, + -0.19921875, + 0.000057697296, + -0.12158203, + -0.07421875, + -0.030273438, + 0.015319824, + -0.092285156, + -0.06542969, + 0.13574219, + 0.028564453, + -0.20996094, + -0.02722168, + 0.15625, + 0.009094238, + -0.07861328, + -0.16992188, + -0.060302734, + 0.123535156, + -0.06542969, + -0.1875, + 0.029296875, + -0.0005531311, + -0.3984375, + -0.071777344, + -0.041748047, + -0.0625, + 0.16503906, + 0.26171875, + -0.045654297, + -0.037353516, + -0.09472656, + -0.063964844, + -0.03881836, + -0.022216797, + -0.06689453, + -0.12060547, + -0.00032806396, + -0.06347656, + 0.037109375, + -0.16113281, + 0.21289062, + 0.041748047, + 0.14550781, + 0.018188477, + -0.095703125, + -0.09765625, + -0.0703125, + -0.05126953, + 0.00982666, + -0.05493164, + 0.030395508, + 0.08154297, + 0.045898438, + -0.15527344, + 0.00982666, + 0.06933594, + -0.055908203, + -0.024047852, + -0.013549805, + 0.46289062, + -0.056884766, + 0.008239746, + 0.041748047, + 0.5625, + -0.078125, + 0.12011719, + -0.019165039, + -0.084472656, + -0.036376953, + -0.14355469, + -0.004180908, + -0.09765625, + 0.18847656, + 0.076660156, + 0.21875, + 0.05053711, + 0.11425781, + 0.07080078, + 0.10253906, + 0.075683594, + 0.15234375, + -0.080078125, + 0.18359375, + -0.013793945, + -0.15722656, + 0.08251953, + -0.099121094, + 0.020385742, + -0.048095703, + -0.20800781, + -0.05810547, + 0.123535156, + -0.06933594, + -0.05859375, + 0.3046875, + 0.03125, + 0.011962891, + -0.029541016, + -0.048095703, + -0.2890625, + -0.05029297, + 0.0021820068, + 0.11035156, + 0.00024223328, + 0.15527344, + 0.13574219, + 0.036132812, + -0.17675781, + 0.08642578, + 0.09765625, + 0.0115356445, + 0.075683594, + -0.053955078, + -0.111816406, + -0.044433594, + -0.013793945, + -0.19824219, + -0.051513672, + -0.100097656, + 0.14941406, + -0.0034179688, + -0.083984375, + -0.20703125, + 0.015991211, + 0.11230469, + -0.04272461, + -0.17480469, + 0.064941406, + 0.024902344, + -0.12158203, + 0.017822266, + 0.10839844, + 0.018554688, + -0.14257812, + -0.07080078, + 0.03564453, + -0.012878418, + 0.115722656, + -0.064453125, + -0.017700195, + -0.0045776367, + -0.06298828, + -0.04345703, + -0.0051879883, + 0.05444336, + -0.010131836, + -0.0029907227, + -0.072265625, + -0.10058594, + -0.099121094, + 0.080566406, + 0.09814453, + -0.009216309, + 0.07080078, + -0.041503906, + 0.06933594, + -0.11035156, + -0.08642578, + -0.096191406, + 0.14550781, + -0.048339844, + 0.13671875, + 0.008483887, + -0.064453125, + -0.03173828, + 0.28125, + -0.024291992, + -0.15625, + -0.0054626465, + -0.08496094, + -0.04248047, + -0.1640625, + 0.10449219, + 0.007751465, + -0.14160156, + 0.042236328, + -0.05859375, + -0.6015625, + -0.15039062, + 0.040527344, + -0.115722656, + 0.061279297, + -0.025268555, + 0.017089844, + 0.028198242, + -0.05883789, + 0.095214844, + 0.080078125, + 0.10546875, + 0.048339844, + 0.11425781, + -0.109375, + -0.123535156, + -0.20507812, + 0.11376953, + -0.023071289, + 0.05053711, + -0.13085938, + 0.004425049, + -0.036621094, + -0.025756836, + 0.036621094, + -0.07519531, + 0.095703125, + 0.100097656, + -0.002609253, + 0.072265625, + 0.053466797, + 0.016845703, + -0.104003906, + -0.09033203, + -0.032470703, + 0.06347656, + -0.032714844, + 0.08300781, + 0.03491211, + 0.013977051, + 0.19921875, + 0.18945312, + -0.041503906, + 0.16992188, + -0.119628906, + 0.046142578, + 0.3046875, + -0.05419922, + -0.18164062, + 0.09472656, + 0.083496094, + -0.015075684, + -0.08203125, + 0.21484375, + -0.032470703, + -0.04321289, + 0.014709473, + 0.11621094, + 0.06347656, + -0.02722168, + -0.021362305, + 0.099609375, + -0.62109375, + -0.1171875, + 0.09033203, + -0.11328125, + 0.049804688, + 0.10839844, + 0.036865234, + 0.05810547, + 0.044433594, + 0.037841797, + -0.05102539, + -0.028076172, + -0.030151367, + -0.023803711, + 0.02758789, + -0.023803711, + -0.3359375, + -0.045410156, + -0.11425781, + -0.035888672, + 0.0066223145, + -0.059326172, + -0.035888672, + 0.037353516, + -0.013122559, + 0.09082031, + -0.0625, + 0.05883789, + -0.20214844, + -0.012817383, + -0.08251953, + -0.052490234, + 0.05908203, + 0.052978516, + -0.080078125, + 0.05102539, + -0.015625, + -0.11669922, + 0.106933594, + 0.025634766, + -0.02758789, + -0.011169434, + -0.052734375, + 0.083984375, + -0.07910156, + 0.009338379, + 0.092285156, + 0.0154418945, + -0.012329102, + -0.07324219, + -0.056884766, + 0.0036773682, + 0.03491211, + -0.30859375, + 0.036132812, + -0.027832031, + -0.04663086, + -0.13867188, + 0.045410156, + -0.051513672, + 0.067871094, + 0.06542969, + -0.038330078, + 0.26757812, + -0.12890625, + 0.078125, + -0.025634766, + 0.049316406, + -0.08935547, + 0.0045166016, + 0.09033203, + -0.15234375, + -0.13671875, + -0.09716797, + -0.16894531, + 0.103027344, + -0.09667969, + -0.008605957, + -0.07714844, + -0.052246094, + -0.014526367, + 0.028076172, + 0.022094727, + 0.07763672, + 0.08544922, + -0.006134033, + 0.06347656, + 0.061279297, + 0.013183594, + -0.007019043, + 0.010437012, + -0.055908203, + 0.05102539, + -0.12158203, + 0.24316406, + -0.14355469, + 0.04248047, + 0.071777344, + -0.06201172, + 0.08154297, + -0.07763672, + -0.013244629, + 0.026489258, + -0.096191406, + -0.056640625, + 0.037841797, + -0.03100586, + 0.032226562, + -0.033691406, + 0.39257812, + -0.0018539429, + -0.011108398, + -0.05859375, + 0.079589844, + 0.41210938, + -0.10498047, + 0.049804688, + 0.013366699, + -0.095214844, + 0.111816406, + -0.0023345947, + 0.13867188, + 0.02319336, + -0.063964844, + 0.09814453, + -0.03515625, + 0.092285156, + 0.037841797, + -0.035888672, + -0.00340271, + 0.045166016, + -0.25976562, + -0.027832031, + 0.087402344, + 0.07763672, + 0.12890625, + 0.017089844, + 0.09472656, + 0.12890625, + 0.01928711, + -0.07714844, + -0.04272461, + -0.037353516, + -0.06640625, + -0.014343262, + -0.0703125, + 0.0022583008, + 0.07470703, + 0.096191406, + -0.07128906, + 0.08544922, + 0.051513672, + -0.009216309, + 0.15136719, + -0.09716797, + -0.040283203, + -0.05859375, + -0.02319336, + -0.09082031, + -0.58203125, + 0.15917969, + 0.08984375, + -0.024902344, + 0.050048828, + -0.0038452148, + -0.118652344, + -0.09716797, + -0.012756348, + 0.010314941, + 0.0703125, + -0.203125, + -0.024291992, + -0.06591797, + 0.09423828, + -0.08691406, + 0.040527344, + -0.019897461, + -0.091308594, + 0.08203125, + -0.059570312, + -0.05493164, + 0.16894531, + 0.15136719, + 0.06347656, + -0.1328125, + -0.13574219, + 0.036132812, + -0.118652344, + -0.08496094, + 0.09375, + -0.15234375, + 0.026245117, + -0.09667969, + -0.041259766, + 0.14746094, + -0.04272461, + -0.027832031, + -0.012329102, + 0.060058594, + -0.07128906, + -0.026123047, + 0.04345703, + -0.084472656, + -0.007537842, + 0.15722656, + 0.03173828, + 0.03149414, + 0.07714844, + -0.07861328, + 0.14160156, + -0.111328125, + 0.015991211, + 0.05126953, + -0.111816406, + 0.07080078, + 0.03564453, + -0.107421875, + 0.04296875, + 0.06298828, + 0.19238281, + -0.11816406, + 0.061279297, + 0.049072266, + -0.08642578, + -0.048828125, + 0.1171875, + -0.0075683594, + 0.017211914, + 0.14941406, + -0.07080078, + -0.140625, + -0.076660156, + -0.04736328, + -0.028686523, + 0.07373047, + 0.05834961, + 0.06640625, + 0.044677734, + -0.078125, + 0.068847656, + 0.14355469, + -0.092285156, + -0.014038086, + -0.0042419434, + -0.17578125, + 0.08886719, + -0.03540039, + 0.080078125, + 0.13867188, + 0.053466797, + -0.0703125, + 0.033447266, + -0.052734375, + -0.18066406, + -0.07373047, + -0.018920898, + -0.104003906, + 0.025146484, + 0.05126953, + 0.091796875, + 0.00579834, + -0.0005607605, + -0.08544922, + 0.16210938, + 0.17089844, + 0.052001953, + 0.0060424805, + -0.022827148, + -0.09716797, + -0.049316406, + 0.049072266, + 0.048339844, + -0.052246094, + 0.037353516, + -0.048339844, + 0.049072266, + -0.087402344, + 0.055419922, + -0.087402344, + -0.12890625, + -0.07470703, + -0.051757812, + 0.17382812, + -0.07763672, + -0.044189453, + 0.104003906, + -0.033935547, + -0.007507324, + -0.12988281, + 0.04248047, + 0.08691406, + -0.07421875, + -0.11816406, + -0.07714844, + -0.052490234, + -0.10839844, + 0.099121094, + 0.08544922, + 0.07080078, + 0.0063171387, + 0.04663086, + -0.0077819824, + -0.029418945, + -0.014099121, + -0.048339844, + -0.020385742, + -0.0146484375, + 0.15234375, + 0.100097656, + 0.016723633, + -0.12207031, + -0.015136719, + -0.037109375, + 0.08300781, + 0.11035156, + 0.06347656, + 0.056640625, + -0.15039062, + -0.484375, + -0.04711914, + -0.10888672, + -0.048828125, + -0.17871094, + -0.017089844, + 0.004425049, + 0.0048828125, + 0.023071289, + -0.04321289, + -0.064941406, + 0.0034179688, + 0.008972168, + 0.078125, + -0.057861328, + 0.0060424805, + 0.107421875, + -0.12792969, + 0.020507812, + -0.12695312, + 0.06640625, + 0.049560547, + 0.075683594, + 0.052490234, + 0.00077056885, + 0.38671875, + 0.08984375, + 0.23339844, + 0.15136719, + -0.022338867, + -0.009338379, + -0.08105469, + 0.03149414, + 0.19433594, + 0.64453125, + 0.11669922, + -0.032226562, + -0.020629883, + -0.076171875, + -0.03930664, + -0.040527344, + -0.22460938, + -0.06542969, + 0.63671875, + 0.013793945, + -0.055664062, + 0.042236328, + -0.13769531, + 0.18652344, + 0.041015625, + -0.30273438, + 0.052978516, + -0.028930664, + -0.064453125, + -0.11816406, + 0.12060547, + -0.036376953, + -0.11816406, + 0.007446289, + 0.14453125, + -0.043945312, + -0.09667969, + -0.0625, + -0.028198242, + 0.27929688, + -0.17675781, + 0.13476562, + 0.083984375, + -0.055908203, + -0.079589844, + -0.0054626465, + -0.0703125, + 0.099609375, + -0.0047912598, + 0.030395508, + -0.033447266, + 0.10888672, + 0.06640625, + -0.10058594, + 0.080566406, + -0.004180908, + 0.017333984, + -0.05419922, + -0.061279297, + -0.028808594, + -0.140625, + 0.064453125, + -0.059326172, + -0.10253906, + -0.06591797, + -0.25976562, + -0.06933594, + 0.088378906, + -0.24609375, + -0.03540039, + -0.080566406, + 0.046142578, + -0.14746094, + 0.088378906, + -0.035888672, + -0.021972656, + -0.4609375, + -0.0004234314, + -0.1875, + 0.07910156, + 0.061767578, + -0.008544922, + 0.18847656, + -0.07519531, + -0.021484375, + 0.080078125, + -0.13378906, + 0.046875, + -0.047607422, + -0.05859375, + -0.051513672, + -0.024414062, + 0.087402344, + -0.05859375, + 0.18847656, + 0.033447266, + 0.061035156, + 0.012512207, + 0.012023926, + 0.05444336, + -0.03857422, + 0.034179688, + -0.114746094, + 0.15917969, + -0.41796875, + 0.023071289, + -0.046142578, + 0.12451172, + -0.04345703, + -0.021850586, + -0.10253906, + 0.09033203, + -0.19042969, + 0.014221191, + -0.019042969, + 0.59765625, + 0.030639648, + -0.013916016, + -0.068847656, + 0.0138549805, + -0.072265625, + 0.007873535, + -0.020874023, + -0.041503906, + -0.08642578, + -0.08154297, + 0.13867188, + -0.0051879883, + 0.037841797, + -0.016845703, + 0.05078125, + 0.020629883, + -0.03930664, + 0.006225586, + 0.030151367, + 0.040771484, + 0.056884766, + -0.12207031, + 0.032470703, + 0.16894531, + 0.123535156, + -0.0074768066, + -0.23535156, + 0.104003906, + -0.32421875, + 0.25976562, + 0.03881836, + 0.02734375, + 0.055908203, + -0.05883789, + 0.026855469, + 0.036621094, + 0.03930664, + 0.05078125, + -0.053222656, + -0.038085938, + -0.16601562, + -0.037353516, + -0.18359375, + 0.025268555, + -0.05908203, + -0.06640625, + 0.06298828, + 0.036376953, + -0.03149414, + 0.040527344, + 0.31445312, + 0.096191406, + 0.030517578, + 0.011962891, + -0.016723633, + -0.087890625, + -0.055664062, + 0.017456055, + -0.040527344, + -0.13769531, + -0.00982666, + 0.016357422, + 0.018188477, + 0.05859375, + 0.05883789, + 0.0071105957, + 0.029052734, + 0.072753906, + 0.08935547, + 0.06738281, + 0.033447266, + -0.009338379, + 0.068359375, + -0.0028076172, + -0.08300781, + 0.10253906, + -0.044921875, + -0.064941406, + -0.103515625, + 0.03955078, + -0.012817383, + -0.028808594, + 0.03149414, + 0.04321289, + -0.015991211, + 0.061523438, + 0.033203125, + -0.03149414, + -0.11425781, + -0.06933594, + 0.04663086, + 0.07324219, + -0.041992188, + 0.021728516, + 0.07080078, + 0.1328125, + -0.057128906, + -0.043945312, + 0.08642578, + 0.21289062, + -0.19726562, + 0.2109375, + 0.123046875, + -0.125, + 0.15039062, + 0.103515625, + -0.044189453, + -0.040527344, + 0.044433594, + 0.067871094, + -0.07080078, + -0.119140625, + 0.12597656, + -0.080566406, + -0.06225586, + -0.013061523, + 0.083984375, + 0.0546875, + 0.16796875, + 0.546875, + -0.05444336, + -0.007873535, + 0.106933594, + -0.008911133, + 0.16796875, + -0.06542969, + -0.28515625, + -0.34375, + 0.08935547, + -0.083984375, + -0.11621094, + -0.041992188, + -0.08105469, + -0.11669922, + -0.10888672, + 0.07324219, + 0.00019836426, + 0.055908203, + -0.07128906, + -0.0023651123, + 0.078125, + 0.057373047, + 0.16015625, + -0.119140625, + -0.11376953, + -0.20410156, + 0.21777344, + -0.005645752, + 0.01184082, + -0.14941406, + -0.055908203, + -0.08691406, + -0.016967773, + -0.049316406, + -0.0076293945, + 0.11279297, + -0.05810547, + -0.021850586, + -0.11816406, + 0.036132812, + 0.027709961, + 0.03491211, + -0.1015625, + -0.048828125, + 0.020996094, + -0.0025482178, + 0.022094727, + 0.079589844, + -0.13378906, + -0.13476562, + 0.08300781, + -0.03955078, + 0.017822266, + -0.11425781, + -0.10595703, + -0.02734375, + 0.0028533936, + 0.12451172, + 0.040039062, + 0.05810547, + 0.02734375, + 0.057373047, + -0.06225586, + 0.053710938, + 0.0625, + 0.09423828, + -0.10205078, + 0.013366699, + -0.25, + 0.025146484, + -0.076171875, + -0.15917969, + 0.115722656, + 0.07714844, + 0.041015625, + -0.068847656, + -0.020996094, + 0.0115356445, + 0.014526367, + -0.030273438, + 0.12402344, + 0.014160156, + 0.0071411133, + -0.08642578, + 0.060791016, + 0.18359375, + 0.20996094, + -0.072753906, + -0.0076293945, + 0.0099487305, + -0.024047852, + -0.100097656, + 0.07128906, + -0.004211426, + -0.008239746, + -0.10107422, + 0.037353516, + 0.118652344, + -0.34375, + -0.08642578, + -0.030883789, + -0.19238281, + -0.10253906, + 0.15527344, + -0.07128906, + 0.22949219, + -0.052734375, + 0.064941406, + -0.04296875, + -0.14941406, + 0.19726562, + -0.068847656, + -0.111328125, + -0.041992188, + 0.016723633, + 0.034179688, + 0.035888672, + 0.14160156, + 0.061767578, + 0.017700195, + -0.061035156, + 0.18359375, + -0.10253906, + 0.13574219, + 0.10839844, + 0.083984375, + 0.014526367, + 0.04711914, + -0.13476562, + -0.045898438, + 0.09375, + 0.17382812, + -0.12695312, + -0.09863281, + -0.12451172, + -0.09277344, + 0.02368164, + -0.05908203, + 0.060058594, + -0.076171875, + 0.061279297, + -0.08691406, + 0.060546875, + 0.045898438, + 0.076660156, + 0.016113281, + -0.021728516, + 0.01361084, + 0.16113281, + -0.20703125, + -0.09716797, + -0.02758789, + -0.0038452148, + -0.4921875, + -0.083496094, + -0.010681152, + 0.01953125, + 0.07421875, + -0.008361816, + -0.05908203, + 0.00045394897, + -0.0390625, + 0.032226562, + 0.19042969, + 0.22167969, + -0.06542969, + -0.07519531, + 0.044433594, + -0.0038604736, + -0.034423828, + 0.22070312, + -0.059326172, + 0.008178711, + -0.06591797, + 0.088378906, + -0.12988281, + -0.020385742, + -0.11328125, + -0.16113281, + -0.095703125, + 0.10058594, + -0.104003906, + 0.18066406, + 0.17675781, + -0.049804688, + -0.034423828, + -0.14550781, + 0.111816406, + -0.06298828, + -0.013244629, + 0.051513672, + -0.028564453, + 0.0051879883, + -0.0032348633, + -0.0018234253, + -0.020874023, + 0.029418945, + 0.06298828, + -0.103027344, + -0.05419922, + 0.019897461, + 0.032958984, + -0.029907227, + -0.13964844, + 0.083984375, + 0.036621094, + 0.09033203, + -0.036865234, + -0.0024719238, + 0.17675781, + -0.033691406, + -0.008728027, + 0.14160156, + -0.0050964355, + -0.053222656, + 0.20214844, + -0.13574219, + -0.06225586, + 0.042236328, + -0.023925781, + 0.044921875, + -0.06542969, + -0.025878906, + -0.05883789, + 0.00019454956, + 0.044677734, + -0.051513672, + -0.14941406, + -0.04711914, + 0.040527344, + -0.328125, + -0.14550781, + 0.107910156, + 0.12158203, + 0.09326172, + 0.044189453, + 0.064453125, + -0.022094727, + -0.020507812, + -0.09033203, + -0.0011444092, + 0.07324219, + 0.032226562, + -0.041992188, + -0.115234375, + 0.0039978027, + -0.10888672, + -0.099609375, + 0.025512695, + 0.08691406, + 0.033691406, + 0.18164062, + -0.12402344, + 0.05493164, + 0.00017738342, + 0.024780273, + 0.1171875, + 0.08886719, + -0.111328125, + -0.11669922, + -0.04345703, + -0.18945312, + 0.20117188, + -0.008056641, + -0.0036010742, + 0.08251953, + 0.028564453, + 0.06298828, + 0.01586914, + 0.020141602, + 0.08886719, + -0.05493164, + -0.049560547, + -0.18164062, + 0.15917969, + 0.06298828, + -0.0126953125, + -0.09277344, + 0.03564453, + 0.07763672, + 0.11669922, + -0.083984375, + 0.040039062, + -0.14160156, + -0.060302734, + -0.14257812, + -0.018066406, + 0.10595703, + -0.079589844, + -0.029541016, + 0.080078125, + -0.14941406, + -0.06347656, + -0.045654297, + 0.09472656, + -0.08984375, + -0.031982422, + 0.091308594, + 0.041992188, + -0.12451172, + 0.07519531, + 0.104003906, + 0.053955078, + -0.17675781, + 0.033691406, + 0.014770508, + -0.032470703, + 0.0119018555, + -0.034423828, + -0.61328125, + -0.14257812, + 0.0099487305, + 0.012451172, + 0.010253906, + 0.017089844, + 0.053466797, + -0.118652344, + -0.015075684, + -0.06347656, + 0.0075683594, + 0.18359375, + -0.0625, + 0.049804688, + 2.25, + -0.018920898, + 0.024169922, + 0.029296875, + -0.0056762695, + -0.12792969, + 0.038085938, + 0.08251953, + -0.08886719, + 0.014587402, + 0.050048828, + -0.04638672, + 0.17675781, + 0.020629883, + -0.032714844, + 0.119628906, + 0.125, + -0.046142578, + -0.09082031, + 0.20605469, + 0.020629883, + 0.11767578, + -0.088378906, + 0.23925781, + -0.0625, + -0.061279297, + -0.045166016, + -0.031982422, + -0.05053711, + -0.0625, + 0.043945312, + 0.080566406, + 0.04711914, + -0.08984375, + 0.037597656, + -0.057617188, + -0.075683594, + 0.0016555786, + 0.09277344, + 0.93359375, + 0.009765625, + -0.10888672, + -0.068847656, + 0.05517578, + -0.087402344, + -0.01373291, + -0.122558594, + 0.078125, + -0.002609253, + -0.014709473, + -0.13378906, + 0.07714844, + -0.076660156, + -0.14746094, + 0.28320312, + -0.005218506, + 0.087890625, + 0.10986328, + -0.020996094, + 0.125, + -0.072265625, + -0.03466797, + 0.03881836, + -0.08203125, + 0.02709961, + 0.14160156, + 0.025634766, + -0.100097656, + 0.07128906, + -0.009643555, + -0.15332031, + -0.00027656555, + 0.09814453, + -0.12890625, + -0.06347656, + -0.16113281, + -0.07128906, + 0.008544922, + 0.00020980835, + -0.056884766, + -0.12011719, + 0.6796875, + 0.07080078, + 0.16308594, + 0.17285156, + 0.075683594, + 0.43945312, + -0.029785156, + -0.024047852, + 0.06542969, + -0.012451172, + 0.043701172, + 0.040283203, + -0.03112793, + -0.09863281, + -0.0063171387, + 0.29882812, + 0.012451172, + -0.10107422, + -0.079589844, + -0.038085938, + -0.017944336, + -0.09765625, + -0.20117188, + -0.0013656616, + -0.017089844, + 0.24902344, + 0.19726562, + -0.49414062, + 0.08984375, + -0.079589844, + 0.017700195, + -0.042236328, + 0.10644531, + -0.052246094, + 0.08300781, + -0.123046875, + -0.06640625, + -0.016113281, + 0.07470703, + 0.03515625, + 0.010681152, + 0.029296875, + 0.053222656, + -0.027709961, + -0.072753906, + -0.07519531, + 0.036376953, + 0.046875, + 0.0008773804, + -0.03857422, + 0.007232666, + -0.111328125, + 0.07421875, + 0.049804688, + -0.25976562, + -0.049072266, + 0.023071289, + -0.04663086, + -0.0014801025, + -0.055908203, + 0.25, + -0.0050354004, + 0.029663086, + -0.38476562, + 0.056640625, + -0.15429688, + -0.0075683594, + 0.040527344, + 0.020507812, + 0.10205078, + 0.024658203, + -0.11230469, + -0.07910156, + 0.10595703, + 0.09765625, + 0.07324219, + -0.014526367, + -0.047607422, + 0.0154418945, + -0.17871094, + -0.11425781, + 0.025878906, + 0.115722656, + -0.08251953, + 0.03564453, + -0.46875, + -0.008056641, + 0.087402344, + 0.01965332, + -0.265625, + -0.2578125, + -0.008300781, + -0.05517578, + 0.08886719, + -0.015197754, + 0.19628906, + 0.0005378723, + -0.06542969, + 0.08984375, + -0.059326172, + 0.040039062, + 0.12060547, + -0.052246094, + -0.027954102, + -0.033203125, + 0.051513672, + 0.010253906, + 0.15136719, + 0.10058594, + -0.068847656, + 0.041259766, + 0.047851562, + 0.036621094, + -0.16113281, + -0.064453125, + -0.38476562, + -0.016845703, + -0.044921875, + 0.053955078, + -0.040039062, + -0.0039367676, + 0.017089844, + 0.05883789, + 0.032958984, + -0.41992188, + 0.014038086, + -0.075683594, + 0.061523438, + -0.021728516, + 0.087402344, + -0.11230469, + 0.012207031, + 0.038085938, + -0.018310547, + 0.10107422, + 0.0034637451, + 0.69140625, + 0.030395508, + -0.029418945, + 0.068847656, + -0.11621094, + -0.075683594, + 0.07910156, + 0.080078125, + 0.0016174316, + 0.07861328, + 0.0703125, + 0.000957489, + 0.010437012, + -0.036132812, + -0.002532959, + -0.023071289, + 0.09033203, + 0.038330078, + -0.09033203, + -0.095703125, + 0.14257812, + 0.18359375, + -0.03857422, + 0.05493164, + -0.013000488, + -0.050048828, + -0.052978516, + 0.021606445, + 0.1171875, + 0.025756836, + 0.012084961, + 0.010070801, + 0.33398438, + -0.07324219, + -0.052246094, + -0.014160156, + 0.036621094, + -0.0059814453, + -0.05029297, + -0.05444336, + -0.106933594, + -0.0703125, + -0.038330078, + 0.125, + 0.09765625, + 0.003112793, + -0.16894531, + -0.0859375, + -0.059570312, + 0.048828125, + -0.03930664, + -0.068847656, + 0.13867188, + 0.04248047, + 0.10888672, + 0.060302734, + -0.09863281, + 0.13769531, + -0.13183594, + 0.010620117, + 0.05517578, + -0.10107422, + -0.03466797, + -0.080078125, + 0.014282227, + -0.12792969, + 0.06640625, + 0.06591797, + -0.16796875, + 0.055908203, + 0.06982422, + 0.099609375, + 0.068847656, + 0.004119873, + 0.13476562, + -0.02319336, + 0.10205078, + 0.2421875, + 0.033691406, + -0.004425049, + 0.022094727, + 0.047851562, + 0.057373047, + 0.06542969, + -0.13671875, + -0.018676758, + 0.10449219, + 0.017089844, + -0.052734375, + 0.068359375, + 0.030883789, + 0.11376953, + 0.10058594, + 0.067871094, + -0.010681152, + -0.024291992, + -0.02368164, + 0.107421875, + 0.24316406, + 0.07763672, + 0.24609375, + -0.100097656, + -0.10595703, + -0.13183594, + 0.006713867, + 0.01940918, + 0.0099487305, + 0.030883789, + 0.048828125, + -0.049316406, + 0.03930664, + 0.123046875, + -0.03930664, + 0.08154297, + 0.16210938, + 0.10107422, + -0.04736328, + 0.095214844, + -0.032714844, + -0.068847656, + -0.076171875, + 0.0234375, + 0.024658203, + 0.00033187866, + -0.29101562, + 0.038085938, + -0.045898438, + -0.035888672, + -0.04248047, + 0.75390625, + 0.13769531, + -0.033203125, + -0.064941406, + 0.029907227, + -0.05834961, + -0.11767578, + 0.04663086, + -0.00982666, + 0.051513672, + 0.06591797, + 0.06542969, + -0.07910156, + 0.07373047, + -0.29882812, + -0.068847656, + -0.10986328, + -0.030883789, + -0.73828125, + -0.07519531, + 0.07861328, + -0.012878418, + -0.17773438, + -0.0040283203, + -0.16699219, + -0.0036621094, + -0.008178711, + 0.08691406, + 0.026733398, + 0.015075684, + -0.079589844, + 0.18652344, + 0.041015625, + -0.05419922, + 0.049560547, + 0.0071411133, + -0.0060424805, + 0.040039062, + -0.18457031, + 0.035888672, + -0.11230469, + -0.045898438, + -0.15722656, + 0.028808594, + 0.104003906, + -0.059814453, + 0.12890625, + 0.16894531, + 0.27148438, + 0.3515625, + -0.006958008, + 0.024169922, + -0.011169434, + 0.036132812, + 0.017211914, + -0.023803711, + -0.111816406, + -0.01586914, + 0.421875, + 0.049560547, + -0.07519531, + -0.0048217773, + 0.10986328, + 0.01373291, + -0.0095825195, + 0.03173828, + -0.115722656, + 0.015136719, + 0.07421875, + -0.049804688, + -0.04248047, + -0.087890625, + -0.0013961792, + -0.09814453, + 0.0071411133, + -0.123535156, + 0.064453125, + 0.07519531, + -0.53515625, + -0.020996094, + 0.09667969, + 0.056640625, + -0.03857422, + 0.1484375, + 0.048339844, + -0.01171875, + 0.046875, + 0.107910156, + -0.09277344, + -0.029541016, + -0.17089844, + 0.08300781, + -0.13867188, + 0.041259766, + -0.013793945, + -0.03112793, + 0.09472656, + -0.0042419434, + -0.044189453, + 0.1015625, + -0.063964844, + 0.031982422, + 0.15527344, + 0.075683594, + 0.020874023, + 0.024780273, + -0.12158203, + -0.0033569336, + -0.008056641, + -0.087890625, + -0.09375, + 0.59765625, + 0.040527344, + 0.111328125, + -0.076660156, + 0.099609375, + 0.07128906, + 0.34179688, + -0.019042969, + -0.083496094, + 0.083984375, + 0.13183594, + -0.10595703, + 0.028686523, + -0.05444336, + 0.018432617, + 0.2578125, + -0.0028533936, + 0.23925781, + 0.072753906, + -0.0011444092, + 0.004272461, + 0.032226562, + -0.055664062, + 0.16015625, + 0.037841797, + -0.036376953, + -0.0046081543, + -0.03466797, + 0.12695312, + 0.06689453, + 0.037353516, + -0.08154297, + 0.045410156, + 0.106933594, + -0.024658203, + 0.1328125, + 0.036132812, + -0.041503906, + -0.01184082, + 12.4375, + 0.14941406, + 0.030395508, + -0.08642578, + -0.16992188, + 0.08300781, + 0.0234375, + 0.049316406, + -0.091308594, + -0.040527344, + -0.09863281, + 0.109375, + -0.049316406, + 0.119140625, + -0.0546875, + 0.03515625, + 0.10986328, + -0.04321289, + 0.06689453, + 0.009033203, + 0.075683594, + 0.016479492, + 0.1875, + 0.0039367676, + 0.08105469, + 0.021362305, + -0.008850098, + -0.109375, + 0.08544922, + 0.09326172, + 0.01965332, + -0.018798828, + 0.06933594, + 0.18652344, + 0.08642578, + -0.010803223, + 0.04296875, + 0.33398438, + 0.05859375, + -0.072265625, + 0.11376953, + 0.27539062, + 0.024169922, + 0.14257812, + 0.123046875, + -0.018798828, + 0.059570312, + -0.05908203, + -0.06298828, + 0.13183594, + -0.022827148, + -0.071777344, + -0.09375, + 0.05908203, + -0.076660156, + 0.114746094, + 0.033691406, + -0.03149414, + 0.018554688, + -0.15527344, + -0.0054016113, + 0.14160156, + 0.056884766, + -0.19433594, + -0.012939453, + -0.06982422, + 0.040771484, + 0.040283203, + -0.009887695, + -0.0054626465, + 0.011291504, + 0.04345703, + -0.005218506, + 0.09375, + -0.06933594, + 0.002670288, + 0.109375, + 0.06542969, + -0.095703125, + -0.05444336, + -0.047851562, + -0.076660156, + 0.03564453, + 0.18554688, + -0.057617188, + -0.031982422, + -0.026855469, + 0.01953125, + 0.10107422, + 0.21875, + -0.023925781, + -0.07470703, + 0.59375, + -0.0027923584, + 0.083496094, + 0.016479492, + -0.13574219, + 0.20410156, + 0.042236328, + 0.1171875, + 0.017822266, + -0.046142578, + 1.65625, + -0.059326172, + -0.061035156, + -0.02709961, + -0.0047912598, + 0.071777344, + 0.10595703, + 0.18066406, + -0.017700195, + -0.028076172, + -0.12695312, + -0.14648438, + 0.03149414, + 0.0051879883, + 0.056884766, + -0.6484375, + 0.022583008, + 0.08544922, + 0.026489258, + 0.091796875, + 0.0154418945, + 0.003829956, + -0.025024414, + 0.0005455017, + 0.140625, + -0.043945312, + -0.0010299683, + -0.05078125, + -0.04248047, + 0.07373047, + 0.17480469, + -0.02734375, + -0.14257812, + 0.16601562, + 0.019042969, + 0.091796875, + 0.07324219, + -0.047851562, + 0.016113281, + 0.015625, + -0.029541016, + 0.110839844, + -0.039794922, + 0.044189453, + -0.09277344, + 0.06591797, + 0.07861328, + 0.018066406, + -0.012268066 + ] +} \ No newline at end of file diff --git a/speakers/ryan.json b/speakers/ryan.json new file mode 100644 index 0000000..68ff464 --- /dev/null +++ b/speakers/ryan.json @@ -0,0 +1,2055 @@ +{ + "name": "ryan", + "description": "male_young", + "spk_id": 3061, + "spk_emb": [ + -0.06933594, + 0.033203125, + -0.040283203, + 0.091796875, + 0.014892578, + 0.037841797, + 0.10253906, + -2.9375, + -0.30078125, + 0.13769531, + -0.034179688, + 0.123535156, + -0.18261719, + 0.16796875, + -0.115722656, + 0.15527344, + -0.10644531, + 0.4609375, + -0.020141602, + 0.004058838, + 0.052001953, + -0.025756836, + 0.044921875, + 0.11230469, + 0.018066406, + -0.007293701, + -0.014709473, + 0.16894531, + -0.16210938, + -0.025634766, + 0.041503906, + 0.12597656, + 0.036865234, + 0.15332031, + 0.18457031, + -0.1484375, + 0.017578125, + 0.036132812, + -0.060058594, + 0.04321289, + 0.030883789, + -0.48632812, + 0.107421875, + 0.010437012, + -0.16503906, + -0.08935547, + -0.028076172, + 0.022705078, + -0.055419922, + 0.14746094, + 0.025878906, + 0.099121094, + -0.16308594, + 0.014770508, + 0.004852295, + 0.15332031, + 0.009094238, + -0.039794922, + -0.0016403198, + 0.12451172, + 0.48632812, + 0.068847656, + 0.107421875, + -0.04638672, + 0.0134887695, + 0.46875, + 0.061767578, + -0.10888672, + -0.11376953, + 0.33398438, + 0.040039062, + 0.05810547, + -0.19433594, + 0.007751465, + -0.10253906, + 0.033935547, + 0.09326172, + -0.10644531, + 0.07128906, + 0.026000977, + -0.018310547, + 0.09667969, + 0.030029297, + 0.03540039, + -0.04711914, + 0.028930664, + 0.014221191, + 0.0625, + 0.03491211, + -0.06347656, + 0.04272461, + -0.057373047, + -0.045898438, + -0.049316406, + 0.064453125, + 0.017089844, + 0.048828125, + 0.019042969, + 0.34179688, + 0.13671875, + 0.013671875, + -0.025390625, + 0.12792969, + -0.0703125, + 0.028808594, + -0.0056152344, + 0.009094238, + -0.060302734, + 0.104003906, + 0.095703125, + -0.038085938, + -0.09375, + -0.096191406, + 0.02734375, + -0.04248047, + 0.068847656, + -0.006134033, + -0.010375977, + -0.03955078, + 0.10644531, + 0.23339844, + 0.2578125, + 0.083496094, + -0.037109375, + 0.22851562, + -0.04248047, + -0.12158203, + -0.072265625, + 0.0076904297, + -0.10253906, + -0.09033203, + 0.20703125, + 0.06347656, + 0.007873535, + 0.091308594, + 0.0077209473, + -0.0058898926, + 0.031982422, + 0.16308594, + 0.01928711, + 0.06542969, + 0.111816406, + 0.12695312, + -0.140625, + -0.0058288574, + 0.33984375, + -0.014831543, + -0.03491211, + -0.03173828, + 0.42773438, + 0.008239746, + 0.040283203, + 0.33007812, + 0.76171875, + -0.059570312, + -0.14257812, + -0.19140625, + -0.008605957, + -0.034179688, + 0.27929688, + -0.033203125, + -0.111816406, + -0.103515625, + -0.084472656, + -0.07861328, + 0.02331543, + -3.0, + -0.051513672, + 0.043945312, + 0.005126953, + 0.01940918, + 0.036132812, + -0.076660156, + -0.096191406, + -0.095214844, + 0.05126953, + 0.1015625, + 0.14941406, + 0.021484375, + 0.15039062, + -0.01965332, + 0.30664062, + 0.17675781, + 0.11425781, + 0.11279297, + -0.048095703, + 0.14355469, + -0.013000488, + 0.039794922, + -0.014587402, + -0.08544922, + -0.11376953, + -0.04296875, + -0.0074157715, + -0.008605957, + -0.064941406, + -0.044433594, + -0.061035156, + 0.021728516, + 0.09277344, + 0.08203125, + 0.12988281, + -0.09667969, + -0.11376953, + 0.043945312, + 0.11376953, + 0.056396484, + -0.09375, + 0.0054626465, + -0.6484375, + 0.008728027, + 0.33398438, + 0.024291992, + 0.028198242, + 0.036132812, + -0.028442383, + -0.028198242, + 0.038330078, + 0.035888672, + -0.103027344, + 0.12890625, + -0.041259766, + 0.13183594, + -0.11035156, + 0.017456055, + 0.106933594, + 0.05517578, + -0.0030212402, + -0.110839844, + 0.011413574, + -0.06738281, + -0.15136719, + -0.0034332275, + 0.13867188, + 0.004272461, + -0.09423828, + -0.07763672, + 0.18164062, + -0.171875, + -0.07861328, + 0.014160156, + -0.30859375, + 0.13574219, + 0.12988281, + -0.13574219, + -0.10253906, + -0.09472656, + 0.042236328, + 0.087402344, + -0.083984375, + 0.036621094, + 0.111328125, + -0.091308594, + 0.019042969, + -0.052734375, + -0.034423828, + -0.018676758, + 0.041748047, + -0.0030059814, + 0.0234375, + -0.31640625, + 0.007873535, + -0.11230469, + -0.080078125, + -0.052734375, + 0.084472656, + 0.0017852783, + 0.04345703, + 0.068359375, + -0.039794922, + -0.11767578, + 0.008239746, + 0.64453125, + -0.10253906, + -0.010314941, + -0.14160156, + 0.107421875, + 0.119140625, + -0.028808594, + -0.052490234, + -0.0027618408, + 0.10205078, + 0.32421875, + -0.028930664, + 0.019165039, + -0.30078125, + 0.053955078, + -0.28515625, + 0.040527344, + -0.014038086, + 0.06640625, + -0.10107422, + -0.072265625, + 0.040039062, + -0.07324219, + -0.09716797, + -0.087890625, + 0.049804688, + 0.08496094, + -0.1171875, + 0.03857422, + 0.103515625, + -0.009094238, + 0.079589844, + -0.056396484, + -0.12988281, + -0.016601562, + -0.10595703, + -0.014526367, + -0.026000977, + 0.004180908, + 0.1796875, + 0.1875, + 0.12988281, + 0.063964844, + 0.057861328, + -0.21289062, + -0.23730469, + 0.05883789, + 0.3828125, + 0.03125, + 0.009765625, + -0.09814453, + 0.32617188, + -0.20996094, + 0.028930664, + -0.171875, + 0.046875, + -0.096191406, + -0.17871094, + -0.203125, + -0.15234375, + 0.06933594, + 0.21289062, + 0.06933594, + 0.08886719, + 0.026977539, + 0.015991211, + -0.068359375, + 0.00074386597, + 0.15234375, + 0.004272461, + 0.11816406, + 0.03540039, + -0.18945312, + 0.040527344, + 0.0019073486, + 0.060058594, + 0.0703125, + -0.08105469, + 0.011413574, + -0.0069885254, + 0.16992188, + -0.047607422, + 0.30664062, + -0.07519531, + 0.07080078, + -0.119140625, + -0.099609375, + 0.047607422, + -0.00049209595, + -0.036376953, + 0.06738281, + 0.20117188, + -0.045166016, + 0.07324219, + -0.0010528564, + -0.07128906, + 0.20117188, + 0.051757812, + -0.19042969, + -0.05078125, + 0.100097656, + -0.36328125, + 0.03515625, + -0.036376953, + 0.027832031, + -0.06982422, + -0.079589844, + 0.234375, + -0.075683594, + 0.05859375, + -0.08642578, + 0.13671875, + 0.02746582, + -0.032714844, + -0.15136719, + -0.044189453, + -0.018676758, + -0.08935547, + 0.067871094, + 0.048583984, + 0.04711914, + -0.09765625, + -0.17578125, + 0.08251953, + -0.13378906, + 0.11279297, + 0.0072021484, + 0.09863281, + -0.07519531, + -0.0703125, + -0.091796875, + -0.095703125, + -0.05908203, + -0.02368164, + 0.057128906, + 0.106933594, + -0.057861328, + 0.016357422, + 0.15820312, + -0.026733398, + -0.040771484, + 0.080566406, + -0.05859375, + 0.09277344, + -0.107421875, + 0.18164062, + -0.040039062, + 0.0119018555, + 0.049804688, + 0.026733398, + -0.064941406, + -0.111816406, + -0.03491211, + 0.3671875, + -0.040039062, + 0.12011719, + 0.005432129, + 0.02734375, + 0.053710938, + -0.034423828, + -0.083984375, + 0.13183594, + -0.020507812, + -0.00025558472, + -0.053955078, + 0.14550781, + -0.20507812, + -0.05859375, + 0.048339844, + 0.052490234, + -0.020019531, + 0.027709961, + -0.052490234, + -0.10546875, + -0.01184082, + -0.03491211, + 0.12890625, + -0.044189453, + -0.011657715, + -0.09472656, + -0.10644531, + -0.095703125, + 0.087402344, + -0.0015182495, + 0.056884766, + -0.06298828, + -0.048095703, + -0.099121094, + -0.005706787, + 0.3125, + -0.06298828, + 0.013793945, + 0.119140625, + -0.05883789, + 0.015991211, + 0.012023926, + -0.057128906, + -0.18359375, + 0.07421875, + -0.12890625, + 0.09667969, + 0.032958984, + -0.010375977, + -0.016113281, + 0.09326172, + -0.22265625, + 0.14257812, + -0.036865234, + 0.34375, + -0.084472656, + -0.10888672, + 0.055908203, + -0.08203125, + 0.043945312, + -0.007293701, + 0.051757812, + 0.015625, + 0.025756836, + 0.06689453, + 0.14257812, + 0.111328125, + -0.013549805, + 0.16210938, + -0.14160156, + -0.110839844, + -0.033691406, + -0.048339844, + -0.5546875, + 0.011474609, + 0.09033203, + -0.114746094, + 0.2109375, + 0.17871094, + -0.05419922, + 0.12792969, + -0.048095703, + -0.064453125, + -0.026123047, + 0.018676758, + 0.018188477, + 0.08203125, + 0.12597656, + 0.0065612793, + -0.037841797, + -0.048828125, + 0.032470703, + -0.095703125, + -0.04248047, + 0.06201172, + 0.10644531, + 0.021362305, + 0.024047852, + -0.03491211, + -0.04736328, + -0.0051879883, + -0.42382812, + -0.06738281, + -0.060058594, + -0.045654297, + -0.092285156, + -0.115234375, + -0.18945312, + -0.10546875, + -0.0074157715, + 0.10546875, + 0.068847656, + 0.06640625, + 0.04248047, + 0.1953125, + 0.044433594, + -0.022583008, + 0.010498047, + -0.072265625, + 0.103515625, + -0.04345703, + 0.013000488, + 0.052490234, + 0.003036499, + -0.007232666, + 0.05834961, + 0.25195312, + 0.14746094, + 0.04663086, + 0.0051574707, + -0.0018692017, + 0.05102539, + 0.049804688, + 0.059570312, + -0.044433594, + 0.06542969, + 0.19238281, + -0.05834961, + 0.110839844, + 0.05126953, + 0.00015830994, + 0.08984375, + -0.08642578, + 0.059326172, + -0.03466797, + -0.072753906, + -0.07128906, + -0.10839844, + 0.0625, + 0.00390625, + 0.008911133, + -0.020019531, + -0.10839844, + -0.10595703, + 0.05102539, + 0.22949219, + -0.05834961, + 0.056396484, + -0.0046081543, + -0.048828125, + -0.083496094, + 0.19140625, + -0.11279297, + 0.022827148, + 0.11425781, + 0.11279297, + -0.083984375, + 0.15039062, + -0.020019531, + 0.057617188, + 0.072753906, + -0.15527344, + 0.10595703, + 0.13476562, + 0.09472656, + 0.095214844, + -0.16210938, + 0.0048217773, + -0.010498047, + -0.08154297, + 0.024169922, + -0.125, + 0.34960938, + -0.0016555786, + 0.056884766, + -0.1484375, + -0.15039062, + -0.16308594, + -0.11816406, + -0.018920898, + 0.14257812, + -0.059326172, + 0.047851562, + -0.09326172, + -0.03491211, + -0.26757812, + -0.059814453, + -0.029907227, + -0.021728516, + 0.111816406, + 0.095703125, + -0.10986328, + 0.109375, + 0.016113281, + -0.36328125, + 0.06298828, + -0.018554688, + 0.0703125, + 0.18652344, + -0.100097656, + 0.07128906, + 0.017700195, + 0.051757812, + -0.048339844, + 0.02722168, + 0.010498047, + -0.060791016, + -0.0051879883, + -0.23730469, + 0.064453125, + 0.09033203, + 0.037841797, + -0.028930664, + 0.049316406, + 0.12890625, + -0.080566406, + 0.122558594, + -0.017211914, + -0.11816406, + -0.040771484, + 0.080078125, + -0.07910156, + -0.3359375, + 0.06298828, + 0.041992188, + -0.036376953, + 0.11035156, + -0.08935547, + -0.09716797, + -0.028320312, + -0.017700195, + -0.075683594, + -0.0025939941, + -0.12988281, + -0.08496094, + -0.021728516, + 0.10449219, + -0.16015625, + -0.11669922, + -0.0126953125, + -0.110839844, + 0.123535156, + 0.0037231445, + -0.09667969, + -0.048095703, + 0.08300781, + -0.13574219, + 0.032714844, + -0.03930664, + 0.064941406, + -0.203125, + -0.022583008, + 0.037597656, + -0.11669922, + -0.12597656, + -0.06542969, + -0.19042969, + 0.07763672, + -0.061523438, + 0.049316406, + 0.080078125, + -0.024047852, + -0.041992188, + 0.05908203, + -0.036865234, + -0.06298828, + 0.026611328, + 0.10595703, + -0.00015926361, + 0.052246094, + -0.017578125, + -0.0107421875, + -0.21679688, + -0.068359375, + 0.017700195, + 0.022583008, + -0.013977051, + 0.021972656, + -0.048339844, + -0.0045166016, + 0.037353516, + -0.05053711, + 0.057373047, + -0.38085938, + 0.041748047, + 0.0059509277, + -0.045166016, + 0.019897461, + 0.13671875, + -0.083984375, + 0.024169922, + 0.33789062, + -0.06738281, + -0.047851562, + 0.007507324, + -0.07080078, + 0.0078125, + 0.022216797, + 0.053710938, + 0.06689453, + 0.12988281, + 0.016845703, + 0.009521484, + 0.080078125, + -0.1484375, + 0.015625, + -0.115722656, + 0.008422852, + -0.028442383, + -0.011413574, + -0.064941406, + -0.030883789, + 0.06982422, + -0.052734375, + -0.05859375, + -0.041259766, + -0.051757812, + -0.028320312, + -0.11230469, + -0.056152344, + 0.015563965, + -0.038085938, + -0.15625, + 0.04711914, + 0.18945312, + -0.107421875, + 0.15625, + 0.036621094, + -0.051513672, + 0.03955078, + 0.009643555, + -0.09375, + 0.012390137, + -0.025268555, + -0.076660156, + 0.0043029785, + 0.11376953, + 0.119628906, + 0.115234375, + -0.055664062, + 0.008605957, + -0.040039062, + 0.026367188, + 0.0703125, + -0.17578125, + 0.013916016, + -0.036132812, + 0.037353516, + 0.08496094, + 0.091796875, + 0.15429688, + -0.030151367, + -0.00390625, + 0.14941406, + 0.063964844, + -0.10107422, + 0.049072266, + -0.018798828, + 0.040283203, + 0.16503906, + -0.06933594, + 0.15039062, + 0.009155273, + -0.033935547, + 0.08251953, + 0.061767578, + -0.028930664, + -0.047607422, + -0.03125, + 0.02319336, + -0.04711914, + 0.13769531, + 0.083984375, + -0.2890625, + -0.067871094, + -0.026367188, + 0.07373047, + 0.18066406, + -0.057861328, + -0.071777344, + -0.12792969, + -0.34179688, + 0.0043945312, + -0.14257812, + -0.060058594, + 0.016235352, + -0.000869751, + -0.11376953, + 0.06640625, + 0.0019454956, + -0.08691406, + 0.11669922, + 0.091308594, + -0.12451172, + 0.045654297, + -0.33984375, + 0.024536133, + -0.037841797, + -0.06933594, + -0.091796875, + -0.096191406, + 0.07421875, + 0.07324219, + 0.13867188, + -0.09375, + 0.06738281, + 0.265625, + -0.0017623901, + 0.13964844, + 0.115722656, + 0.022216797, + -0.012573242, + -0.10888672, + -0.021484375, + 0.08886719, + 0.640625, + -0.05078125, + -0.017822266, + 0.041503906, + -0.020874023, + -0.047607422, + -0.007080078, + -0.036621094, + -0.072265625, + 0.46679688, + -0.0050354004, + -0.006652832, + 0.17382812, + 0.025878906, + -0.011291504, + 0.06225586, + 0.071777344, + -0.0119018555, + -0.103515625, + 0.0027160645, + 0.20898438, + -0.010498047, + 0.08886719, + -0.14550781, + 0.03857422, + 0.1640625, + -0.047851562, + -0.07861328, + -0.067871094, + 0.087890625, + 0.33984375, + -0.19628906, + 0.1328125, + 0.015625, + -0.049804688, + 0.019165039, + -0.008483887, + -0.07324219, + -0.14453125, + 0.032226562, + -0.055664062, + -0.02758789, + 0.15039062, + -0.07714844, + -0.09716797, + 0.040039062, + -0.20117188, + 0.078125, + 0.0119018555, + -0.06591797, + -0.045410156, + -0.095214844, + 0.002456665, + -0.091796875, + -0.14160156, + 0.016479492, + 0.31054688, + -0.005432129, + 0.078125, + -0.07080078, + -0.12695312, + 0.015075684, + -0.07470703, + -0.10449219, + 0.075683594, + -0.072265625, + -0.08251953, + 0.57421875, + 0.021118164, + -0.031982422, + 0.029418945, + 0.123535156, + 0.005584717, + 0.064941406, + 0.08154297, + 0.05859375, + -0.018920898, + 0.042236328, + 0.18066406, + -0.014953613, + 0.048095703, + 0.06689453, + 0.0076293945, + 0.028686523, + 0.021362305, + 0.24609375, + 0.04272461, + -0.005218506, + -0.04711914, + 0.0625, + -0.0011291504, + 0.041015625, + 0.083984375, + -0.15136719, + 0.16894531, + -0.578125, + 0.040039062, + -0.04296875, + 0.0087890625, + 0.038330078, + 0.018310547, + 0.07421875, + 0.014160156, + 0.12060547, + 0.02746582, + 0.06982422, + -0.119628906, + -0.01373291, + 0.21484375, + 0.103515625, + -0.01171875, + -0.036376953, + 0.12158203, + -0.07421875, + 0.125, + -0.14648438, + -0.010375977, + 0.064453125, + -0.1328125, + 0.00016117096, + -0.01928711, + -0.05810547, + -0.15527344, + 0.017089844, + -0.16601562, + -0.18554688, + 0.08251953, + 0.07421875, + -0.067871094, + -0.018432617, + 0.13476562, + 0.10888672, + -0.030517578, + -0.19238281, + 0.020507812, + 0.11279297, + 0.05078125, + -0.015991211, + 0.09765625, + 0.119140625, + -0.14160156, + -0.17382812, + -0.03857422, + -0.068359375, + -0.026367188, + -0.06933594, + 0.078125, + 0.029418945, + 0.09375, + -0.15820312, + -0.015380859, + -0.026000977, + 0.000013411045, + 0.01977539, + -0.053466797, + -0.072265625, + 0.0043029785, + 0.30078125, + 0.017944336, + -0.00041389465, + -0.028564453, + 0.056640625, + -0.040771484, + -0.025756836, + 0.075683594, + 0.0032348633, + -0.20800781, + -0.03125, + -0.21484375, + 0.04663086, + -0.025024414, + 0.099121094, + 0.083984375, + 0.13378906, + 0.087890625, + -0.07080078, + -0.012145996, + 0.025756836, + -0.05053711, + 0.021606445, + -0.026245117, + -0.09472656, + 0.076660156, + -0.008483887, + -0.11230469, + -0.014282227, + 0.06298828, + -0.063964844, + -0.66015625, + 0.05053711, + -0.07714844, + -0.23144531, + -0.05834961, + 0.012329102, + 0.012023926, + -0.22265625, + -0.041015625, + -0.072753906, + 0.19824219, + -0.08300781, + 0.14160156, + 0.12695312, + 0.026245117, + 0.016357422, + -0.19433594, + 0.020263672, + 0.13183594, + -0.29492188, + 0.24414062, + 0.06738281, + -0.140625, + -0.060302734, + 0.053466797, + 0.046142578, + -0.012634277, + 0.03100586, + 0.07763672, + -0.0016021729, + -0.0035552979, + 0.022583008, + 0.035888672, + -0.12451172, + -0.122558594, + 0.084472656, + -0.12890625, + 0.19335938, + 0.5078125, + -0.021240234, + 0.0066833496, + 0.12597656, + -0.061279297, + 0.46875, + -0.032958984, + -0.2578125, + -0.28515625, + 0.068359375, + -0.052246094, + -0.10449219, + -0.05883789, + 0.0066223145, + -0.10498047, + 0.030273438, + -0.06933594, + -0.021484375, + 0.040039062, + -0.045898438, + -0.051513672, + 0.061035156, + 0.07373047, + 0.0058898926, + -0.16699219, + -0.091308594, + -0.21191406, + 0.3515625, + 0.21777344, + 0.21484375, + 0.14550781, + 0.095214844, + 0.10546875, + 0.060791016, + 0.12158203, + 0.013122559, + 0.21191406, + 0.00793457, + 0.08105469, + -0.099609375, + -0.076171875, + -0.10888672, + 0.13085938, + -0.115722656, + -0.053466797, + -0.026245117, + -0.037109375, + 0.09423828, + 0.122558594, + 0.059326172, + -0.04272461, + 0.01159668, + -0.13867188, + 0.024291992, + -0.10205078, + -0.072265625, + -0.0066223145, + 0.07910156, + 0.12451172, + 0.14160156, + 0.01977539, + 0.07910156, + -0.092285156, + -0.114746094, + -0.008605957, + 0.13671875, + 0.0095825195, + 0.047851562, + 0.060058594, + -0.06982422, + 0.068359375, + -0.05493164, + -0.15625, + 0.056640625, + 0.09326172, + -0.049316406, + -0.015625, + -0.06201172, + 0.0048217773, + 0.048583984, + 0.107910156, + 0.18554688, + -0.06982422, + 0.043945312, + 0.03955078, + -0.056884766, + 0.10107422, + -0.29492188, + 0.063964844, + -0.046142578, + -0.13378906, + 0.021362305, + -0.07714844, + -0.083496094, + -0.09716797, + 0.012390137, + 0.033203125, + -0.008422852, + 0.032714844, + -0.33203125, + 0.08935547, + 0.037597656, + -0.06933594, + 0.032958984, + 0.0703125, + -0.068847656, + 0.19921875, + -0.032470703, + 0.06298828, + -0.014404297, + -0.014465332, + 0.15234375, + -0.045898438, + -0.055908203, + -0.015075684, + 0.052490234, + 0.0068359375, + 0.0004005432, + 0.076660156, + 0.104003906, + 0.05444336, + 0.14550781, + 0.19238281, + 0.029418945, + 0.18945312, + 0.05419922, + 0.008056641, + 0.03955078, + 0.08251953, + -0.140625, + -0.056640625, + 0.057373047, + 0.19140625, + -0.22753906, + -0.15527344, + -0.018798828, + -0.06640625, + 0.01965332, + 0.052246094, + -0.06982422, + -0.18261719, + 0.0072631836, + -0.05834961, + -0.060302734, + -0.103027344, + 0.011169434, + 0.011352539, + -0.08886719, + -0.12207031, + -0.47265625, + 0.023925781, + -0.06982422, + 0.017089844, + -0.171875, + -0.375, + -0.0048828125, + -0.011779785, + -0.033691406, + -0.0006752014, + 0.06347656, + 0.104003906, + -0.061279297, + -0.119140625, + 0.068847656, + 0.171875, + -0.0703125, + 0.16699219, + -0.15136719, + 0.06542969, + 0.076660156, + 0.13671875, + -0.09667969, + -0.068359375, + 0.041259766, + -0.2890625, + 0.053466797, + 0.03515625, + -0.025512695, + -0.049560547, + 0.051513672, + 0.06640625, + 0.11816406, + 0.0029754639, + 0.20117188, + 0.036865234, + -0.031982422, + 0.04321289, + -0.061035156, + 0.005645752, + -0.072753906, + -0.0073242188, + -0.020141602, + 0.051513672, + -0.092285156, + -0.022338867, + -0.008056641, + -0.09423828, + -0.16503906, + 0.083496094, + -0.068359375, + -0.16015625, + 0.028442383, + 0.09082031, + 0.030395508, + -0.17675781, + -0.06738281, + 0.025146484, + 0.071777344, + 0.08984375, + 0.02331543, + 0.07910156, + -0.1015625, + 0.032714844, + 0.095214844, + 0.01940918, + -0.004058838, + -0.016601562, + -0.11376953, + 0.10888672, + 0.05834961, + -0.11816406, + -0.06542969, + -0.01953125, + -0.000831604, + 0.020507812, + -0.14453125, + -0.02355957, + 0.030517578, + 0.0029907227, + 0.001449585, + 0.0045166016, + -0.60546875, + -0.18457031, + -0.06542969, + 0.05517578, + 0.061523438, + -0.053466797, + 0.096191406, + -0.059814453, + 0.056884766, + -0.12402344, + -0.0234375, + 0.095703125, + 0.13867188, + 0.03955078, + 0.14550781, + -0.0032806396, + 0.018066406, + 0.0019073486, + 0.21777344, + 0.056152344, + 0.19140625, + -0.053466797, + 0.010131836, + -0.050048828, + 0.07324219, + 0.017700195, + -0.0703125, + 0.12060547, + -0.064941406, + 0.014465332, + 0.16015625, + -0.0018157959, + 0.08544922, + 0.0095825195, + 0.17089844, + -0.076171875, + -0.028808594, + 0.234375, + -0.029174805, + -0.15820312, + 0.076660156, + -0.30273438, + -0.100097656, + -0.011779785, + -0.091308594, + 0.029296875, + 0.019042969, + 0.08203125, + 0.011291504, + 0.040039062, + 0.19042969, + 0.06347656, + 0.025512695, + -0.10839844, + -0.0034484863, + -0.17089844, + 0.050048828, + 0.07324219, + 0.11669922, + 0.123046875, + 0.029052734, + -0.11669922, + 0.0021209717, + 0.07128906, + 0.14648438, + -0.044921875, + 0.018920898, + 0.37890625, + 0.0016708374, + -0.032958984, + 0.07714844, + 0.107910156, + 0.25390625, + -0.21972656, + -0.08544922, + -0.016723633, + 0.03857422, + -0.00016880035, + -0.05029297, + -0.014709473, + -0.088378906, + -0.015625, + -0.12597656, + -0.15234375, + 0.015625, + -0.048095703, + -0.064941406, + -0.008056641, + 0.08544922, + -0.010437012, + 0.09326172, + -0.071777344, + 0.06347656, + 2.03125, + -0.03173828, + -0.15136719, + 0.014953613, + 0.15234375, + 0.018188477, + -0.039794922, + -0.06347656, + 0.061767578, + -0.053466797, + 0.0859375, + 0.0056762695, + 0.056640625, + -0.030151367, + -0.17871094, + 0.040039062, + 0.171875, + 0.013977051, + 0.018920898, + 0.25390625, + -0.0072021484, + 0.16992188, + -0.04248047, + -0.02746582, + 0.009887695, + -0.09033203, + 0.05053711, + -0.04345703, + -0.16210938, + 0.084472656, + 0.06640625, + 0.005126953, + 0.05908203, + -0.009155273, + 0.017822266, + 0.06738281, + -0.046875, + 0.041992188, + -0.036621094, + 0.060546875, + -0.171875, + -0.20703125, + 0.021972656, + -0.12792969, + 0.012023926, + 0.052978516, + 0.03540039, + 0.048095703, + 0.0234375, + -0.12597656, + 0.010437012, + 0.13476562, + -0.19238281, + -0.1796875, + 0.2265625, + -0.029907227, + -0.068359375, + 0.0040283203, + -0.1015625, + 0.26367188, + -0.039794922, + 0.042236328, + 0.01586914, + -0.021850586, + -0.103515625, + 0.29882812, + 0.16601562, + -0.14746094, + 0.021850586, + -0.04663086, + -0.13183594, + 0.03857422, + -0.19824219, + -0.064941406, + -0.018798828, + 0.01977539, + 0.03466797, + -0.10058594, + -0.12890625, + 0.21679688, + 0.08154297, + 0.76953125, + 0.071777344, + 0.10058594, + 0.21386719, + 0.07080078, + 0.056640625, + -0.0059509277, + 0.08251953, + -0.0069274902, + -0.10058594, + -0.14648438, + 0.015380859, + -0.18554688, + 0.083496094, + 0.14160156, + 0.33007812, + -0.059326172, + 0.014770508, + 0.06542969, + -0.056640625, + 0.0065307617, + 0.005706787, + -0.20019531, + 0.030517578, + -0.016113281, + 0.18554688, + 0.057617188, + 0.09765625, + -0.043701172, + -0.037109375, + 0.0154418945, + -0.08544922, + 0.24804688, + -0.16015625, + 0.10498047, + -0.06689453, + 0.013977051, + -0.095703125, + 0.051757812, + 0.03173828, + 0.01586914, + 0.033691406, + -0.118652344, + -0.08642578, + 0.06640625, + -0.15234375, + -0.15429688, + 0.11230469, + 0.026489258, + 0.02722168, + -0.063964844, + -0.111816406, + 0.17773438, + -0.05908203, + -0.265625, + -0.072265625, + -0.09277344, + 0.012451172, + -0.03491211, + -0.055908203, + -0.33984375, + -0.0703125, + 0.118652344, + -0.72265625, + -0.049072266, + 0.012756348, + 0.15332031, + -0.08544922, + -0.064453125, + 0.02746582, + 0.017456055, + -0.047851562, + -0.18652344, + 0.083496094, + -0.04663086, + 0.00982666, + 0.140625, + -0.025634766, + 0.049072266, + 0.05810547, + -0.30859375, + 0.01977539, + 0.13476562, + -0.0021209717, + 0.049560547, + -0.21289062, + -0.09082031, + 0.029541016, + 0.03930664, + -0.13183594, + 0.010681152, + 0.10986328, + 0.115722656, + -0.00680542, + 0.14160156, + 0.083496094, + 0.008911133, + -0.20703125, + 0.033935547, + 0.0076904297, + 0.10839844, + -0.002319336, + 0.13378906, + -0.13964844, + -0.12597656, + 0.08886719, + 0.029785156, + 0.064941406, + 0.13085938, + -0.039794922, + 0.05883789, + -0.04321289, + 0.083984375, + -0.059326172, + -0.057617188, + -0.099609375, + 0.01940918, + -0.040527344, + -0.05029297, + -0.068847656, + -0.071777344, + -0.08886719, + -0.026000977, + 0.010803223, + -0.3671875, + 0.20410156, + -0.14648438, + 0.15039062, + 0.025390625, + -0.021728516, + -0.123046875, + 0.107421875, + -0.071777344, + 0.04321289, + 0.1640625, + 0.053955078, + -0.057617188, + -0.061035156, + -0.013549805, + -0.060791016, + -0.053710938, + 0.064941406, + 0.057861328, + 0.09814453, + 0.07470703, + 0.08300781, + 0.04272461, + 0.03466797, + -0.028686523, + -0.11279297, + 0.05810547, + 0.07373047, + -0.140625, + 0.12207031, + 0.012268066, + 0.079589844, + 0.09326172, + 0.111328125, + -0.2578125, + 0.068847656, + -0.00038337708, + 0.005004883, + -0.115722656, + 0.021972656, + 0.019897461, + 0.09423828, + -0.1640625, + -0.16992188, + 0.39257812, + 0.17871094, + 0.19824219, + 0.12158203, + -0.12060547, + 0.018798828, + 0.026000977, + -0.037597656, + -0.008422852, + -0.18261719, + -0.014038086, + 0.12158203, + 0.06225586, + -0.032958984, + 0.024902344, + -0.026855469, + -0.030273438, + 0.072265625, + -0.068359375, + 0.034423828, + 0.040039062, + 0.07519531, + 0.099121094, + 0.18261719, + -0.09716797, + 0.14453125, + 0.008117676, + -0.19921875, + -0.018676758, + -0.10839844, + 0.0035552979, + 0.024047852, + -0.047851562, + -0.07910156, + 0.0119018555, + 0.03491211, + -0.0087890625, + -0.0063171387, + -0.07714844, + -0.01940918, + -0.014282227, + 0.072753906, + 0.20117188, + -0.063964844, + -0.012451172, + 0.0703125, + -0.17382812, + -0.048828125, + 0.0046081543, + -0.022705078, + -0.04638672, + -0.01953125, + -0.024291992, + 0.017578125, + 0.053222656, + 0.15039062, + -0.053710938, + -0.035888672, + -0.068359375, + 0.06640625, + 0.0703125, + -0.08886719, + 0.060302734, + 0.009216309, + 0.039794922, + 0.03149414, + 0.22753906, + 0.033447266, + 0.30273438, + 0.021728516, + -0.034423828, + -0.19335938, + -0.0546875, + 0.06982422, + 0.08984375, + 0.07763672, + -0.036621094, + -0.14941406, + 0.012817383, + 0.17578125, + -0.052246094, + -0.06542969, + 0.13769531, + 0.18261719, + -0.057617188, + 0.09033203, + 0.0022735596, + -0.033203125, + -0.12792969, + 0.030883789, + -0.07421875, + 0.13085938, + -0.18945312, + -0.044433594, + -0.016601562, + 0.3984375, + -0.029052734, + -0.28710938, + 0.11425781, + -0.04736328, + -0.037109375, + -0.13671875, + -0.03955078, + -0.11669922, + -0.12060547, + -0.045898438, + 0.072265625, + 0.030517578, + 0.15917969, + -0.092285156, + -0.0036773682, + -0.30859375, + 0.0042419434, + -0.08544922, + 0.13085938, + -0.08544922, + -0.008972168, + 0.014404297, + -0.005645752, + -0.18261719, + -0.063964844, + 0.028686523, + 0.02758789, + -0.11279297, + 0.15136719, + -0.008666992, + -0.064941406, + -0.106933594, + 0.14746094, + 0.07421875, + -0.051513672, + 0.14550781, + -0.072753906, + 0.009155273, + 0.0005493164, + -0.05859375, + 0.05810547, + -0.059814453, + 0.07519531, + 0.018554688, + 0.16796875, + -0.016357422, + 0.009399414, + 0.11230469, + -0.17285156, + 0.083984375, + -0.10839844, + 0.10253906, + -0.052490234, + -0.14453125, + 0.14746094, + 0.16992188, + -0.041992188, + -0.1796875, + 0.038085938, + -0.21386719, + 0.055664062, + -0.06933594, + 0.013427734, + 0.18066406, + -0.07910156, + 0.040771484, + -0.0390625, + -0.21289062, + 0.12597656, + 0.080078125, + -0.040771484, + 0.033447266, + -0.034423828, + 0.09277344, + 0.064453125, + -0.107421875, + -0.021606445, + 0.14941406, + -0.14160156, + -0.41210938, + -0.016235352, + -0.13964844, + 0.13378906, + -0.008850098, + -0.05834961, + 0.07910156, + -0.0036010742, + 0.14355469, + -0.06640625, + -0.013427734, + -0.083496094, + 0.014038086, + 0.06982422, + -0.3046875, + -0.0030059814, + 0.10888672, + -0.0050964355, + -0.052246094, + 0.022583008, + -0.13183594, + -0.017456055, + 0.015075684, + -0.011474609, + 0.018554688, + -0.06982422, + -0.0079956055, + -0.015136719, + -0.045654297, + 0.15527344, + -0.052734375, + 0.03955078, + -0.1484375, + 0.7421875, + -0.10595703, + 0.01940918, + 0.033935547, + -0.018310547, + -0.018920898, + 0.41796875, + -0.0057678223, + -0.057128906, + 0.111328125, + 0.036132812, + -0.003479004, + -0.03112793, + -0.032958984, + 0.1796875, + 0.24023438, + -0.22851562, + -0.0016555786, + 0.17773438, + 0.056396484, + 0.080566406, + 0.111328125, + -0.12988281, + 0.04711914, + -0.119140625, + -0.044677734, + 0.16503906, + 0.03112793, + 0.096191406, + -0.013061523, + 0.06542969, + -0.025024414, + 0.049560547, + 0.008911133, + -0.059814453, + -0.03491211, + -0.040771484, + -0.033935547, + 0.042236328, + 11.75, + -0.005706787, + -0.01586914, + -0.107421875, + -0.08935547, + 0.30273438, + -0.04248047, + 0.00491333, + 0.12890625, + -0.14257812, + -0.13378906, + -0.103027344, + 0.026855469, + -0.14648438, + -0.20507812, + 0.036865234, + -0.02355957, + 0.11669922, + 0.01928711, + 0.04272461, + -0.067871094, + 0.03491211, + 0.16210938, + -0.15429688, + 0.030639648, + 0.17675781, + -0.029541016, + -0.049560547, + 0.08203125, + -0.05517578, + -0.044433594, + 0.083984375, + 0.09472656, + 0.14941406, + 0.15332031, + -0.060546875, + 0.122558594, + 0.24414062, + 0.16796875, + 0.08984375, + 0.052246094, + 0.29296875, + 0.060058594, + 0.12695312, + 0.123046875, + -0.12207031, + 0.09814453, + -0.091796875, + 0.033447266, + 0.07470703, + 0.076171875, + -0.10888672, + -0.01171875, + 0.27539062, + -0.016113281, + 0.123046875, + 0.04296875, + 0.045166016, + 0.14941406, + -0.1328125, + -0.041015625, + 0.0390625, + 0.17675781, + -0.12207031, + -0.07714844, + 0.042236328, + 0.11669922, + -0.08203125, + -0.00012588501, + -0.16210938, + 0.029785156, + 0.05053711, + -0.004425049, + -0.07519531, + 0.017456055, + -0.1171875, + 0.12890625, + -0.06542969, + 0.044189453, + -0.078125, + 0.011962891, + -0.15429688, + 0.068359375, + 0.04345703, + -0.09375, + -0.095214844, + 0.036376953, + -0.002822876, + -0.04711914, + 0.044677734, + 0.041259766, + -0.09814453, + 0.53515625, + 0.053955078, + 0.0008468628, + -0.17578125, + -0.06689453, + 0.32617188, + -0.10986328, + -0.0020751953, + -0.014099121, + 0.09863281, + 1.5625, + -0.22167969, + 0.068847656, + -0.28710938, + 0.038085938, + 0.09082031, + 0.08886719, + 0.03173828, + 0.016357422, + -0.072753906, + -0.17578125, + -0.008728027, + -0.01928711, + 0.02355957, + 0.08251953, + -0.041992188, + -0.041748047, + -0.016479492, + 0.17675781, + 0.012756348, + -0.091796875, + 0.044677734, + -0.16699219, + 0.06982422, + 0.123535156, + 0.123535156, + -0.037109375, + -0.014831543, + -0.0015716553, + 0.04638672, + 0.04272461, + -0.07763672, + -0.032226562, + 0.1171875, + 0.00010967255, + -0.0059814453, + -0.030517578, + -0.095703125, + 0.012207031, + 0.1796875, + 0.0067443848, + 0.09423828, + -0.0033569336, + -0.045654297, + 0.009216309, + -0.035888672, + 0.068359375, + 0.19628906, + 0.016479492 + ] +} \ No newline at end of file diff --git a/speakers/serena.json b/speakers/serena.json new file mode 100644 index 0000000..01d70eb --- /dev/null +++ b/speakers/serena.json @@ -0,0 +1,2055 @@ +{ + "name": "serena", + "description": "female_adult", + "spk_id": 3066, + "spk_emb": [ + 0.017578125, + -0.048583984, + 0.14355469, + 0.078125, + 0.015075684, + 0.00390625, + 0.041259766, + -3.40625, + 0.06738281, + -0.039794922, + 0.03173828, + 0.13671875, + -0.18261719, + 0.018432617, + -0.11669922, + 0.0119018555, + -0.022216797, + 0.21972656, + -0.056640625, + 0.09423828, + -0.08886719, + -0.15722656, + -0.099121094, + -0.049316406, + 0.07470703, + -0.14550781, + 0.083496094, + 0.123535156, + -0.12011719, + 0.024169922, + 0.095703125, + -0.09423828, + -0.06591797, + 0.052001953, + 0.07519531, + -0.14648438, + -0.049072266, + 0.068847656, + -0.08154297, + -0.0026245117, + -0.013793945, + 0.16699219, + -0.035888672, + -0.107421875, + 0.021362305, + -0.13476562, + 0.030029297, + -0.12792969, + -0.08300781, + 0.18066406, + -0.0056762695, + 0.012634277, + -0.14355469, + -0.08642578, + 0.043945312, + 0.009094238, + 0.100097656, + 0.026245117, + -0.10498047, + -0.057128906, + -0.20117188, + 0.036865234, + 0.15332031, + -0.12060547, + 0.040527344, + 0.06689453, + -0.068847656, + -0.11328125, + -0.07080078, + 0.390625, + 0.0034179688, + -0.016479492, + -0.014038086, + -0.08642578, + -0.1015625, + -0.13476562, + -0.028686523, + -0.018676758, + -0.071777344, + -0.19726562, + -0.029541016, + -0.12695312, + -0.012329102, + -0.015014648, + -0.03466797, + -0.04296875, + -0.015319824, + 0.037109375, + -0.09277344, + -0.0025024414, + -0.0016937256, + -0.14257812, + -0.019897461, + -0.018920898, + 0.09472656, + 0.15722656, + -0.12158203, + 0.068359375, + 0.08642578, + 0.059326172, + -0.06347656, + -0.049560547, + 0.10644531, + 0.008972168, + 0.12109375, + 0.076171875, + -0.10986328, + -0.10205078, + 0.02758789, + -0.12060547, + 0.0234375, + -0.006439209, + -0.04321289, + -0.0068969727, + -0.040771484, + 0.114746094, + 0.009765625, + -0.064941406, + 0.031982422, + 0.037597656, + 0.099121094, + 0.15527344, + -0.045166016, + 0.17773438, + 0.08251953, + 0.0390625, + -0.08251953, + -0.001159668, + 0.14160156, + -0.0134887695, + -0.045410156, + 0.13476562, + 0.12109375, + 0.13769531, + -0.068359375, + 0.107421875, + -0.08935547, + 0.044921875, + 0.06738281, + -0.051757812, + 0.008728027, + 0.042236328, + 0.16894531, + -0.056396484, + -0.060791016, + 0.40820312, + 0.053466797, + -0.092285156, + -0.10595703, + 0.064453125, + 0.053466797, + 0.022094727, + 0.27539062, + -0.21191406, + -0.052490234, + 0.04272461, + 0.328125, + 0.16992188, + -0.15429688, + -0.2265625, + -0.044677734, + 0.059570312, + -0.10546875, + -0.041992188, + 0.075683594, + 0.030395508, + -2.9375, + -0.0036621094, + 0.063964844, + -0.17285156, + 0.06201172, + -0.084472656, + -0.061767578, + 0.017089844, + -0.068847656, + 0.0043640137, + 0.05444336, + 0.080078125, + -0.00037193298, + 0.10546875, + -0.02355957, + 0.22070312, + -0.02319336, + -0.17480469, + 0.071777344, + -0.047607422, + 0.034423828, + 0.002822876, + -0.057128906, + -0.09375, + -0.0072021484, + -0.004852295, + 0.013366699, + 0.055664062, + -0.05102539, + 0.006225586, + 0.038085938, + 0.015563965, + -0.026245117, + 0.05493164, + 0.11767578, + 0.16503906, + -0.033203125, + 0.06982422, + 0.012084961, + -0.002532959, + -0.032958984, + 0.09423828, + -0.010253906, + -0.37304688, + 0.057373047, + 0.0859375, + 0.0065612793, + -0.088378906, + 0.030029297, + -0.095214844, + 0.041992188, + -0.013366699, + 0.025634766, + 0.07324219, + 0.08105469, + -0.05029297, + 0.06201172, + 0.007080078, + -0.07910156, + -0.09863281, + 0.010559082, + -0.040527344, + 0.0012741089, + 0.055908203, + 0.031982422, + -0.016113281, + 0.004058838, + -0.14746094, + -0.032226562, + -0.076171875, + -0.110839844, + 0.052001953, + -0.16210938, + -0.03125, + -0.046142578, + 0.067871094, + 0.1640625, + 0.09423828, + -0.07373047, + 0.13867188, + 0.14257812, + 0.059326172, + 0.014526367, + -0.10107422, + 0.027954102, + 0.028686523, + -0.125, + 0.08300781, + -0.057373047, + -0.025024414, + 0.056884766, + -0.12402344, + 0.091308594, + 0.0067443848, + -0.023803711, + -0.04296875, + 0.0035705566, + 0.08496094, + -0.10839844, + -0.064453125, + -0.043945312, + -0.0077209473, + 0.060791016, + 0.015625, + -0.19433594, + 0.08203125, + 0.18261719, + -0.08886719, + -0.09667969, + -0.08886719, + -0.07324219, + -0.0052490234, + 0.060058594, + 0.020996094, + 0.00592041, + -0.026855469, + -0.359375, + -0.075683594, + -0.059326172, + -0.119140625, + 0.109375, + 0.00006723404, + -0.046142578, + -0.09863281, + -0.051513672, + -0.07470703, + 0.11816406, + -0.0013961792, + 0.007598877, + -0.13867188, + 0.007019043, + -0.01977539, + -0.079589844, + 0.13085938, + 0.16894531, + 0.05053711, + -0.10498047, + 0.0015945435, + 0.040039062, + -0.1328125, + -0.21777344, + -0.11279297, + 0.107910156, + 0.037597656, + -0.078125, + 0.099121094, + -0.053955078, + -0.09033203, + -0.087402344, + 0.11376953, + -0.140625, + -0.22558594, + -0.05053711, + 0.5078125, + -0.14648438, + 0.08544922, + -0.12890625, + 0.21582031, + -0.039794922, + 0.013793945, + -0.19140625, + -0.06201172, + -0.075683594, + -0.13671875, + 0.01159668, + -0.14648438, + 0.02355957, + 0.061279297, + 0.008728027, + -0.02734375, + -0.020263672, + 0.01940918, + 0.008300781, + 0.1328125, + -0.00011873245, + -0.1640625, + 0.14941406, + 0.026977539, + -0.22460938, + -0.051513672, + -0.012023926, + 0.087890625, + 0.095214844, + -0.067871094, + 0.08105469, + 0.020019531, + 0.048095703, + -0.049560547, + 0.40820312, + 0.03466797, + 0.19433594, + -0.07861328, + 0.14160156, + -0.1640625, + -0.096191406, + 0.03112793, + 0.13769531, + -0.04736328, + 0.057373047, + -0.037353516, + -0.012329102, + -0.17089844, + 0.099121094, + -0.007385254, + -0.06640625, + 0.0625, + -0.037109375, + -0.043701172, + 0.13085938, + 0.040039062, + -0.061523438, + 0.010864258, + 0.037841797, + 0.07519531, + 0.00970459, + 0.026123047, + -0.025390625, + 0.103515625, + 0.057617188, + -0.052978516, + -0.296875, + 0.025390625, + 0.08642578, + 0.08300781, + 0.13574219, + -0.024414062, + 0.10595703, + -0.08154297, + -0.008850098, + 0.05102539, + -0.05493164, + 0.18457031, + 0.010314941, + -0.029541016, + 0.036865234, + 0.03112793, + -0.14355469, + -0.044189453, + -0.08105469, + 0.05517578, + 0.007446289, + -0.083496094, + -0.025146484, + 0.06982422, + 0.0048828125, + 0.009887695, + -0.033203125, + -0.026000977, + -0.068847656, + -0.026611328, + -0.04663086, + 0.068847656, + -0.052734375, + 0.012756348, + 0.024536133, + -0.10644531, + -0.0033416748, + -0.18847656, + 0.020874023, + 0.30664062, + 0.00075149536, + -0.010437012, + -0.083984375, + -0.06347656, + -0.18554688, + -0.04663086, + -0.03149414, + -0.0703125, + -0.059570312, + -0.016479492, + 0.0046691895, + -0.484375, + -0.018432617, + 0.025024414, + 0.07373047, + -0.084472656, + 0.002243042, + 0.011108398, + 0.05883789, + -0.018554688, + -0.026733398, + -0.16113281, + 0.00007390976, + 0.06982422, + -0.025634766, + 0.06982422, + -0.14355469, + -0.20605469, + 0.00793457, + -0.12060547, + 0.079589844, + -0.021362305, + -0.083984375, + -0.007019043, + -0.08544922, + 0.11767578, + 0.027954102, + -0.05419922, + 0.048828125, + -0.06982422, + -0.0011444092, + -0.040039062, + 0.06982422, + -0.14257812, + -0.016723633, + -0.0029296875, + -0.096191406, + -0.09423828, + 0.06347656, + 0.01940918, + -0.008972168, + 0.14453125, + 0.2109375, + -0.052490234, + 0.036376953, + -0.048583984, + -0.044921875, + 0.17382812, + -0.01953125, + -0.05834961, + 0.040283203, + 0.16699219, + -0.045166016, + 0.10058594, + 0.06982422, + 0.13085938, + 0.004333496, + -0.057128906, + -0.057373047, + 0.03491211, + -0.06689453, + -0.049072266, + 0.06542969, + -0.43359375, + -0.0546875, + -0.0043029785, + -0.125, + 0.09033203, + 0.079589844, + 0.0625, + 0.044921875, + 0.11621094, + -0.067871094, + -0.022583008, + -0.030273438, + 0.055419922, + 0.20703125, + -0.09863281, + -0.12792969, + -0.03857422, + 0.09472656, + -0.027709961, + -0.0053710938, + 0.064453125, + 0.08691406, + 0.0025482178, + 0.033203125, + -0.029418945, + 0.05810547, + -0.004547119, + 0.14550781, + 0.014892578, + -0.010498047, + 0.013061523, + -0.014404297, + -0.057373047, + -0.000108242035, + -0.07714844, + -0.092285156, + -0.027832031, + 0.028320312, + -0.011108398, + 0.13183594, + -0.022338867, + -0.019042969, + -0.087402344, + 0.057373047, + -0.061279297, + 0.045898438, + 0.024291992, + 0.050048828, + -0.03466797, + -0.063964844, + -0.06298828, + -0.08105469, + 0.07324219, + -0.25390625, + 0.044433594, + 0.05834961, + 0.0012435913, + -0.026489258, + 0.017089844, + 0.11669922, + 0.016357422, + -0.032714844, + -0.080078125, + 0.24902344, + -0.046142578, + 0.017333984, + -0.004058838, + -0.03491211, + -0.01940918, + -0.030761719, + 0.0859375, + -0.033935547, + 0.008422852, + 0.01184082, + -0.17285156, + -0.029052734, + 0.0022125244, + -0.01953125, + 0.046142578, + -0.037841797, + 0.0057373047, + 0.103515625, + 0.06640625, + 0.072753906, + 0.052490234, + 0.05883789, + 0.017211914, + -0.004119873, + 0.060302734, + -0.09716797, + -0.0048217773, + -0.083496094, + 0.0069274902, + -0.040527344, + -0.041992188, + -0.03955078, + -0.14453125, + 0.14160156, + -0.092285156, + 0.16015625, + 0.015625, + 0.011108398, + 0.06225586, + -0.032226562, + 0.123535156, + -0.03540039, + -0.16796875, + -0.06347656, + 0.029541016, + 0.24121094, + 0.052734375, + -0.019165039, + 0.024291992, + 0.025024414, + 0.28710938, + -0.048095703, + -0.07519531, + 0.006958008, + 0.026733398, + 0.11035156, + -0.07519531, + 0.05078125, + -0.13671875, + -0.005554199, + 0.063964844, + -0.03857422, + 0.05493164, + 0.063964844, + -0.016845703, + -0.07470703, + -0.045898438, + -0.16308594, + 0.0546875, + 0.06347656, + -0.021972656, + 0.22558594, + -0.0390625, + 0.059570312, + -0.05419922, + 0.06591797, + -0.09033203, + 0.045654297, + 0.24023438, + 0.072753906, + -0.0023040771, + -0.03515625, + 0.08300781, + 0.22460938, + 0.12060547, + -0.13183594, + 0.10546875, + -0.09082031, + -0.028320312, + 0.07373047, + -0.079589844, + -0.046875, + -0.037353516, + -0.011474609, + 0.022094727, + -0.421875, + 0.075683594, + 0.103515625, + -0.13183594, + 0.026611328, + 0.0065612793, + -0.068847656, + -0.15136719, + -0.064453125, + 0.020141602, + 0.041748047, + -0.10205078, + -0.13867188, + -0.017333984, + 0.16308594, + -0.07470703, + -0.068359375, + 0.003616333, + -0.059326172, + 0.034423828, + 0.059326172, + 0.05102539, + 0.022705078, + 0.057128906, + -0.030395508, + -0.12597656, + -0.024658203, + 0.022094727, + -0.071777344, + -0.030273438, + 0.036865234, + -0.07128906, + -0.063964844, + -0.015991211, + -0.008728027, + 0.09472656, + -0.09814453, + -0.122558594, + -0.0050354004, + -0.024169922, + 0.01953125, + 0.033935547, + 0.07373047, + 0.051757812, + -0.111816406, + 0.10205078, + -0.033691406, + 0.029418945, + -0.030639648, + -0.06689453, + -0.110839844, + -0.041992188, + 0.0008735657, + 0.10595703, + -0.012268066, + -0.10205078, + -0.26367188, + -0.030151367, + 0.056396484, + -0.07714844, + 0.1640625, + -0.020996094, + -0.038330078, + -0.009277344, + -0.048095703, + -0.07128906, + 0.16113281, + 0.09082031, + 0.0005722046, + 0.3984375, + -0.06640625, + 0.02746582, + -0.13867188, + 0.027954102, + -0.020629883, + -0.0012588501, + -0.0025939941, + 0.015136719, + 0.032226562, + -0.028930664, + 0.05053711, + -0.07373047, + -0.07128906, + -0.04736328, + -0.016967773, + 0.049804688, + 0.08886719, + -0.0055236816, + 0.028198242, + 0.08642578, + 0.06933594, + -0.018432617, + 0.07080078, + -0.045166016, + -0.18261719, + -0.049560547, + -0.020874023, + -0.08203125, + -0.02734375, + -0.09277344, + -0.10498047, + 0.046142578, + 0.03515625, + 0.080078125, + 0.040771484, + 0.09277344, + 0.060546875, + 0.064941406, + -0.05444336, + 0.020629883, + 0.09863281, + -0.03149414, + -0.032226562, + -0.028564453, + -0.0020751953, + -0.043701172, + 0.059814453, + -0.04638672, + -0.031982422, + -0.09472656, + -0.06738281, + 0.010437012, + -0.03125, + 0.017089844, + -0.080078125, + -0.049804688, + 0.14257812, + 0.05883789, + -0.109375, + -0.04296875, + 0.018188477, + 0.030273438, + -0.0703125, + -0.0036773682, + -0.13867188, + -0.08691406, + 0.03515625, + 0.018920898, + 0.14355469, + 0.048583984, + 0.091308594, + 0.030395508, + -0.15429688, + -0.024047852, + -0.07324219, + 0.028442383, + -0.04248047, + 0.00340271, + 0.06542969, + 0.036376953, + 0.052001953, + -0.18457031, + 0.091796875, + -0.022583008, + 0.05126953, + 0.0859375, + -0.030639648, + -0.083496094, + -0.17773438, + -0.18066406, + 0.04321289, + 0.06225586, + 0.00970459, + -0.030029297, + -0.03491211, + -0.15332031, + -0.0029144287, + -0.030517578, + -0.1328125, + 0.0703125, + -0.045654297, + -0.03930664, + 0.0038146973, + 0.16601562, + 0.03125, + -0.022705078, + -0.028564453, + -0.08496094, + -0.068847656, + 0.060302734, + 0.06542969, + 0.08300781, + 0.013977051, + 0.032226562, + 0.21679688, + 0.059814453, + 0.56640625, + 0.1015625, + 0.026367188, + -0.084472656, + -0.036376953, + 0.080078125, + 0.045166016, + 0.6015625, + 0.015075684, + -0.064941406, + -0.03149414, + -0.08544922, + -0.052001953, + 0.15332031, + -0.140625, + -0.03466797, + 0.52734375, + -0.09375, + -0.16992188, + -0.0077209473, + -0.12451172, + 0.06298828, + 0.011474609, + -0.19238281, + -0.10449219, + 0.022705078, + -0.04296875, + -0.08105469, + 0.095703125, + -0.05444336, + -0.009094238, + -0.028686523, + 0.10058594, + -0.0115356445, + -0.091308594, + -0.068847656, + -0.050048828, + 0.3203125, + -0.059570312, + 0.07080078, + 0.006958008, + -0.11425781, + 0.052001953, + -0.059570312, + -0.10839844, + -0.0015945435, + -0.019042969, + 0.07519531, + -0.076171875, + -0.010437012, + 0.083984375, + -0.09423828, + 0.061767578, + -0.036621094, + -0.05444336, + -0.029785156, + -0.059570312, + -0.16992188, + 0.033935547, + 0.033203125, + 0.016601562, + 0.0034332275, + 0.004547119, + -0.3203125, + -0.107421875, + 0.084472656, + -0.028320312, + -0.024291992, + 0.020141602, + -0.12695312, + 0.051757812, + 0.045898438, + -0.008544922, + 0.076171875, + -0.33398438, + -0.021240234, + 0.0019454956, + -0.09716797, + 0.06201172, + 0.084472656, + 0.14746094, + -0.022338867, + 0.018554688, + 0.0007362366, + -0.06542969, + -0.018188477, + 0.0017089844, + -0.037353516, + -0.045166016, + -0.106933594, + -0.015258789, + 0.020507812, + 0.140625, + 0.05493164, + -0.08886719, + 0.08251953, + 0.11328125, + 0.17089844, + 0.064941406, + 0.068359375, + -0.08886719, + 0.35351562, + -0.099121094, + 0.043701172, + -0.076171875, + -0.07763672, + -0.053955078, + -0.12060547, + 0.064941406, + -0.083496094, + -0.19042969, + -0.016479492, + -0.05419922, + 0.50390625, + 0.14453125, + 0.33984375, + 0.036376953, + -0.03125, + -0.095703125, + -0.020385742, + 0.19335938, + 0.021606445, + 0.016479492, + 0.008361816, + -0.059814453, + -0.061279297, + 0.12988281, + -0.015014648, + -0.067871094, + -0.22558594, + -0.06933594, + -0.01574707, + -0.049316406, + 0.037109375, + 0.10888672, + -0.071777344, + -0.02734375, + 0.030029297, + 0.044189453, + -0.0010147095, + -0.26953125, + 0.049316406, + -0.28125, + 0.00046920776, + 0.05859375, + -0.09472656, + -0.032958984, + -0.03955078, + -0.091308594, + -0.040527344, + 0.03564453, + 0.012756348, + -0.076660156, + 0.07763672, + -0.08691406, + -0.03881836, + -0.13867188, + -0.028198242, + -0.06542969, + 0.057128906, + 0.084472656, + -0.029907227, + -0.059570312, + -0.013061523, + 0.25, + -0.03564453, + -0.067871094, + -0.010375977, + -0.109375, + 0.010681152, + -0.111328125, + 0.056884766, + 0.055664062, + -0.12060547, + 0.061279297, + 0.080566406, + 0.007080078, + 0.10595703, + -0.021606445, + 0.06225586, + 0.040771484, + 0.060058594, + 0.09765625, + -0.004180908, + -0.012390137, + -0.026855469, + 0.035888672, + -0.018920898, + 0.0016555786, + 0.05834961, + -0.018066406, + -0.14257812, + -0.0010147095, + 0.06738281, + -0.029541016, + 0.09423828, + -0.033935547, + -0.01159668, + -0.22949219, + -0.07324219, + -0.051513672, + 0.14257812, + -0.09814453, + -0.087402344, + -0.09033203, + -0.005218506, + 0.013366699, + -0.022583008, + 0.11035156, + 0.047607422, + -0.05859375, + -0.048339844, + 0.014282227, + 0.18945312, + -0.15527344, + 0.25976562, + 0.12695312, + -0.008666992, + 0.14355469, + 0.11230469, + -0.063964844, + -0.0625, + 0.033447266, + -0.0036010742, + 0.013244629, + 0.0026245117, + -0.075683594, + 0.08300781, + -0.014221191, + -0.00061416626, + 0.038085938, + -0.0115356445, + 0.25585938, + 0.421875, + 0.018798828, + 0.02319336, + 0.06738281, + -0.02319336, + 0.24121094, + -0.06591797, + 0.037109375, + -0.25976562, + 0.0058898926, + -0.16796875, + -0.033447266, + 0.06689453, + -0.052734375, + -0.028686523, + 0.015625, + -0.020751953, + -0.03125, + 0.014038086, + -0.16210938, + 0.084472656, + 0.05029297, + 0.012634277, + 0.02368164, + 0.0069885254, + -0.08935547, + -0.10498047, + 0.29492188, + -0.092285156, + 0.083984375, + -0.14550781, + -0.005004883, + 0.10546875, + -0.05078125, + -0.059326172, + -0.11816406, + 0.0625, + -0.15039062, + 0.034423828, + 0.0008430481, + -0.0034942627, + -0.055664062, + -0.14355469, + 0.045898438, + -0.052978516, + 0.04272461, + -0.027954102, + 0.0038452148, + 0.111816406, + -0.071777344, + -0.27148438, + 0.006072998, + 0.026123047, + -0.0095825195, + -0.051513672, + -0.099609375, + 0.076660156, + 0.016723633, + 0.18945312, + -0.041503906, + 0.07373047, + -0.028808594, + 0.0625, + 0.050048828, + 0.030883789, + 0.026245117, + 0.022094727, + -0.045898438, + -0.041503906, + -0.16699219, + 0.07861328, + 0.010437012, + -0.15136719, + 0.040039062, + 0.09667969, + 0.022949219, + -0.02758789, + -0.060546875, + 0.06640625, + -0.07861328, + 0.057373047, + 0.02722168, + 0.123046875, + 0.014282227, + 0.0008544922, + 0.06542969, + 0.15039062, + 0.12695312, + 0.014892578, + 0.0126953125, + 0.07519531, + -0.01977539, + -0.15039062, + 0.10986328, + -0.13085938, + 0.011352539, + 0.025756836, + 0.045654297, + -0.10546875, + -0.40234375, + -0.024536133, + -0.11376953, + -0.12597656, + -0.04663086, + 0.017578125, + -0.12402344, + 0.13085938, + -0.075683594, + 0.115722656, + 0.13867188, + -0.006439209, + 0.11669922, + -0.11279297, + 0.017333984, + 0.13671875, + -0.0006828308, + 0.12597656, + -0.03100586, + -0.07128906, + 0.07763672, + 0.0703125, + -0.017700195, + 0.06591797, + -0.041748047, + -0.0027923584, + 0.15429688, + 0.10888672, + 0.04321289, + 0.103515625, + -0.12988281, + -0.053222656, + 0.1328125, + 0.076660156, + 0.021728516, + -0.095214844, + -0.0095825195, + 0.0025482178, + 0.0703125, + 0.004272461, + -0.015075684, + -0.13964844, + -0.015380859, + -0.1328125, + 0.016723633, + 0.07519531, + 0.11376953, + -0.07080078, + -0.13867188, + 0.053710938, + 0.20214844, + -0.0058898926, + -0.037597656, + 0.0107421875, + -0.08300781, + -0.34765625, + -0.15039062, + -0.15429688, + -0.020507812, + 0.044189453, + 0.119628906, + -0.002670288, + 0.060546875, + -0.021362305, + -0.004425049, + 0.47851562, + 0.20117188, + -0.025512695, + -0.080078125, + 0.012207031, + 0.025024414, + 0.049072266, + -0.2109375, + -0.061279297, + -0.012817383, + -0.19140625, + 0.12060547, + 0.013977051, + -0.036376953, + -0.009033203, + 0.042236328, + 0.009765625, + 0.06738281, + -0.040039062, + 0.06298828, + 0.13476562, + -0.072265625, + -0.064453125, + -0.22558594, + 0.0051879883, + 0.08935547, + 0.17871094, + -0.0625, + 0.052246094, + -0.1484375, + -0.08203125, + 0.060058594, + -0.06347656, + -0.15722656, + -0.012329102, + -0.09277344, + 0.015991211, + 0.07128906, + 0.084472656, + 0.01928711, + -0.11328125, + 0.02709961, + -0.09423828, + 0.061767578, + 0.017944336, + -0.016601562, + 0.07714844, + -0.22070312, + 0.024291992, + 0.1484375, + 0.1015625, + -0.0011367798, + 0.021728516, + -0.14355469, + 0.16015625, + -0.0023345947, + -0.03466797, + -0.007507324, + -0.029418945, + 0.059570312, + -0.023925781, + 0.032714844, + 0.106933594, + -0.012084961, + -0.059814453, + 0.012145996, + -0.04711914, + -0.23925781, + -0.1953125, + 0.010070801, + -0.067871094, + 0.04345703, + -0.0020446777, + 0.07714844, + 0.07324219, + -0.052246094, + -0.15527344, + -0.059326172, + -0.099121094, + 0.05859375, + -0.1484375, + -0.040771484, + 0.09863281, + -0.05053711, + -0.049316406, + 0.036132812, + 0.13476562, + -0.011352539, + -0.016357422, + -0.10449219, + 0.01184082, + 0.033203125, + 0.09277344, + -0.04321289, + 0.05908203, + -0.08886719, + -0.030151367, + 0.059326172, + -0.049804688, + 0.17871094, + 0.034423828, + -0.071777344, + 0.072753906, + 0.017089844, + 0.080078125, + 0.00579834, + 0.029663086, + 0.03466797, + -0.31445312, + -0.036132812, + -0.14941406, + 0.114746094, + -0.052978516, + -0.060546875, + 0.037109375, + 0.04296875, + 0.0079956055, + 0.114746094, + -0.075683594, + -0.034179688, + -0.103027344, + -0.084472656, + -0.12109375, + -0.018920898, + 0.08691406, + 0.107910156, + -0.0017852783, + -0.011352539, + -0.07128906, + -0.06298828, + -0.052734375, + -0.03857422, + -0.016357422, + -0.0013809204, + -0.03857422, + 0.042236328, + -0.08642578, + -0.038085938, + -0.07519531, + 0.080078125, + -0.23828125, + -0.007659912, + 0.11767578, + 0.09423828, + 0.028442383, + 0.03125, + -0.65625, + -0.1640625, + -0.07421875, + -0.048828125, + 0.0002117157, + 0.043701172, + 0.11279297, + 0.01977539, + 0.099121094, + 0.099609375, + 0.06591797, + -0.033203125, + 0.05078125, + 0.032226562, + 2.3125, + -0.014221191, + 0.09277344, + 0.078125, + 0.08203125, + 0.013061523, + 0.08105469, + 0.048583984, + -0.055664062, + -0.052001953, + 0.05126953, + 0.0045166016, + 0.111816406, + 0.010620117, + -0.034179688, + 0.050048828, + 0.15527344, + -0.023071289, + -0.10888672, + 0.24316406, + -0.010559082, + 0.07519531, + -0.07421875, + 0.44726562, + -0.044677734, + 0.10839844, + -0.12988281, + 0.028930664, + -0.0000667572, + 0.014404297, + 0.040283203, + -0.07519531, + 0.036376953, + 0.024780273, + -0.028564453, + -0.0028839111, + 0.07763672, + -0.029296875, + -0.067871094, + 0.55859375, + -0.049316406, + -0.14648438, + 0.02746582, + -0.03955078, + 0.03149414, + -0.03955078, + -0.015075684, + -0.038330078, + 0.09814453, + -0.03491211, + -0.050048828, + -0.015380859, + -0.03881836, + -0.100097656, + 0.18164062, + 0.027709961, + 0.0079956055, + 0.087890625, + -0.009277344, + 0.063964844, + 0.0859375, + -0.09765625, + -0.018310547, + -0.047851562, + -0.013916016, + 0.106933594, + -0.0004310608, + -0.15625, + -0.079589844, + -0.14355469, + -0.17773438, + -0.072753906, + -0.008178711, + -0.030273438, + 0.0051574707, + -0.022216797, + 0.0390625, + 0.040771484, + -0.020385742, + 0.033203125, + 0.09423828, + 0.60546875, + 0.15234375, + 0.18847656, + 0.19335938, + -0.0115356445, + 0.4765625, + 0.051513672, + 0.0074768066, + 0.103515625, + -0.01574707, + -0.043945312, + -0.041992188, + -0.32617188, + -0.03564453, + 0.010314941, + 0.36328125, + 0.002166748, + -0.10107422, + -0.11035156, + 0.00680542, + -0.048095703, + -0.024658203, + -0.111816406, + 0.021240234, + 0.005706787, + 0.13183594, + 0.08984375, + -0.57421875, + 0.05859375, + 0.013793945, + 0.09082031, + -0.02746582, + 0.115234375, + -0.044433594, + 0.01953125, + -0.022705078, + 0.03857422, + -0.028076172, + 0.100097656, + 0.049804688, + -0.072265625, + 0.08544922, + -0.012390137, + -0.13476562, + -0.10546875, + -0.16503906, + -0.048583984, + 0.14550781, + -0.10058594, + 0.017089844, + -0.115234375, + 0.05444336, + 0.115722656, + 0.15429688, + -0.2265625, + 0.099121094, + -0.030883789, + -0.009033203, + 0.020629883, + 0.016967773, + 0.41210938, + -0.051513672, + 0.1328125, + -0.07910156, + 0.14453125, + -0.03540039, + 0.020141602, + 0.015075684, + -0.103027344, + 0.037597656, + -0.118652344, + 0.076660156, + -0.096191406, + 0.099121094, + -0.012329102, + 0.036621094, + 0.01586914, + -0.017700195, + -0.059570312, + -0.41210938, + -0.28320312, + 0.08203125, + 0.075683594, + -0.080566406, + 0.044921875, + -0.3046875, + -0.005432129, + 0.034423828, + -0.05834961, + -0.12988281, + -0.052490234, + 0.021850586, + -0.13476562, + 0.010864258, + 0.10253906, + 0.52734375, + 0.008850098, + -0.09423828, + -0.033203125, + -0.079589844, + 0.0024414062, + -0.016723633, + 0.021118164, + 0.0051574707, + -0.057128906, + 0.080078125, + -0.036865234, + 0.049560547, + 0.0859375, + -0.033935547, + 0.04736328, + 0.07470703, + -0.025756836, + -0.05883789, + -0.05493164, + -0.080078125, + -0.02331543, + -0.00037193298, + -0.016967773, + -0.005554199, + -0.041992188, + -0.052246094, + 0.07763672, + 0.14257812, + -0.47851562, + -0.024047852, + -0.16210938, + 0.018798828, + 0.12695312, + 0.045410156, + -0.059570312, + 0.044677734, + -0.013305664, + 0.004486084, + 0.111816406, + -0.15429688, + 0.71875, + 0.10058594, + 0.014587402, + 0.010498047, + -0.044921875, + 0.029052734, + 0.030029297, + 0.052001953, + 0.06201172, + 0.16308594, + -0.106933594, + 0.13769531, + 0.048339844, + -0.0073547363, + -0.08203125, + -0.09814453, + 0.03112793, + 0.087402344, + -0.055664062, + -0.060546875, + 0.09423828, + 0.072753906, + -0.032958984, + -0.08154297, + 0.009521484, + 0.053222656, + -0.06347656, + -0.008728027, + 0.17578125, + -0.084472656, + -0.061035156, + 0.12109375, + 0.8125, + 0.016967773, + -0.063964844, + 0.05444336, + -0.050048828, + 0.06591797, + -0.115722656, + 0.12988281, + -0.017700195, + 0.014465332, + 0.103027344, + -0.0040283203, + 0.068847656, + -0.016113281, + -0.044189453, + -0.091308594, + 0.010192871, + 0.016479492, + 0.05883789, + 0.07373047, + 0.004180908, + -0.07080078, + 0.052734375, + 0.016357422, + -0.03173828, + 0.09326172, + -0.017944336, + -0.060791016, + 0.09326172, + -0.0703125, + -0.060791016, + 0.020385742, + -0.00793457, + -0.07910156, + 0.13671875, + -0.05883789, + -0.006713867, + -0.09423828, + 0.043945312, + 0.017578125, + -0.12890625, + 0.024047852, + -0.13476562, + -0.06591797, + 0.033447266, + -0.0021362305, + -0.032714844, + -0.06225586, + 0.10839844, + -0.07324219, + 0.110839844, + -0.003540039, + -0.00592041, + -0.092285156, + -0.045410156, + 0.084472656, + -0.03491211, + -0.064941406, + 0.015625, + 0.08544922, + 0.026367188, + -0.0087890625, + -0.078125, + -0.0018081665, + -0.099121094, + 0.060058594, + 0.0017242432, + -0.055908203, + 0.22460938, + -0.028686523, + -0.11279297, + -0.1015625, + -0.030029297, + 0.061035156, + 0.15332031, + 0.09863281, + 0.017822266, + -0.115234375, + 0.011230469, + 0.1328125, + -0.038085938, + -0.087890625, + -0.010620117, + -0.005279541, + 0.005340576, + 0.032226562, + -0.056884766, + -0.08496094, + -0.00390625, + 0.052978516, + -0.09375, + 0.042236328, + -0.25, + 0.020507812, + -0.03857422, + -0.16015625, + -0.06738281, + 0.8359375, + 0.16992188, + 0.01550293, + 0.02709961, + -0.055908203, + 0.028442383, + -0.10449219, + -0.06689453, + -0.032226562, + 0.060546875, + -0.0154418945, + 0.07714844, + -0.05126953, + 0.005645752, + -0.016967773, + 0.026733398, + 0.015380859, + 0.021118164, + -0.3671875, + -0.115234375, + -0.04345703, + 0.08105469, + -0.033447266, + -0.037841797, + -0.091796875, + 0.033691406, + 0.0002746582, + 0.08642578, + 0.0020599365, + -0.040771484, + -0.0546875, + 0.13378906, + 0.037109375, + -0.041015625, + 0.20996094, + 0.09375, + 0.04248047, + -0.023071289, + -0.055908203, + 0.02319336, + -0.048583984, + -0.021362305, + -0.032714844, + 0.046875, + 0.053466797, + 0.010009766, + 0.18847656, + 0.18164062, + 0.15429688, + 0.26757812, + -0.0703125, + 0.022705078, + -0.103027344, + -0.0063171387, + 0.052246094, + -0.04321289, + -0.19921875, + -0.037597656, + 0.54296875, + 0.053222656, + -0.026855469, + 0.09765625, + 0.075683594, + -0.0625, + -0.00037574768, + 0.06347656, + -0.091796875, + 0.09326172, + 0.063964844, + -0.19238281, + 0.05883789, + 0.018066406, + 0.041748047, + -0.060302734, + 0.06982422, + 0.017456055, + 0.063964844, + -0.14550781, + -0.53515625, + -0.07080078, + 0.0042419434, + 0.029663086, + 0.027954102, + 0.033203125, + 0.068847656, + -0.04638672, + 0.119140625, + -0.010192871, + -0.046875, + 0.19433594, + -0.06347656, + 0.019042969, + -0.23242188, + 0.111816406, + -0.020629883, + 0.04663086, + 0.010437012, + -0.04345703, + -0.10107422, + 0.08203125, + -0.10546875, + -0.071777344, + 0.05834961, + -0.029541016, + 0.021484375, + -0.04736328, + -0.06298828, + 0.11230469, + 0.005706787, + -0.014526367, + -0.12597656, + 0.14453125, + 0.06591797, + 0.0020446777, + -0.17675781, + -0.21191406, + -0.045166016, + 0.37109375, + -0.14453125, + -0.013000488, + 0.064941406, + 0.140625, + -0.06591797, + 0.125, + 0.06347656, + 0.0021514893, + 0.07714844, + -0.07763672, + 0.021606445, + 0.07861328, + 0.064453125, + 0.06640625, + -0.060546875, + 0.027832031, + 0.13085938, + -0.10498047, + 0.024047852, + -0.056640625, + -0.16601562, + 0.06982422, + 0.0015487671, + 0.061279297, + 0.00028419495, + -0.018310547, + 0.072265625, + 0.050048828, + 0.0390625, + -0.08105469, + 0.011047363, + 0.045898438, + 12.75, + 0.06640625, + -0.04345703, + -0.020019531, + -0.26953125, + -0.08154297, + 0.13183594, + -0.010681152, + -0.032470703, + -0.0390625, + -0.045654297, + 0.061767578, + -0.092285156, + 0.03930664, + -0.03564453, + 0.032470703, + 0.13867188, + 0.095703125, + -0.087890625, + 0.03930664, + -0.08642578, + -0.022583008, + 0.10986328, + 0.0017318726, + 0.19238281, + -0.08251953, + 0.09814453, + 0.0066223145, + 0.028320312, + 0.06591797, + -0.053955078, + 0.061035156, + 0.092285156, + 0.18359375, + 0.050048828, + 0.080078125, + 0.07910156, + 0.030761719, + 0.21386719, + 0.08300781, + -0.09082031, + 0.23925781, + -0.050048828, + 0.07373047, + 0.008483887, + -0.010559082, + -0.019042969, + -0.061767578, + -0.07080078, + 0.08203125, + 0.03540039, + -0.06982422, + -0.035888672, + 0.06591797, + 0.026245117, + 0.13183594, + -0.09375, + 0.03149414, + 0.024536133, + -0.063964844, + -0.010192871, + 0.063964844, + -0.01977539, + -0.15039062, + -0.05053711, + 0.095214844, + 0.008056641, + 0.044921875, + 0.18652344, + 0.06982422, + -0.03540039, + -0.095214844, + -0.030151367, + 0.125, + 0.012512207, + -0.025146484, + 0.0007095337, + 0.026977539, + -0.0036773682, + 0.08935547, + -0.055908203, + -0.076171875, + 0.030639648, + 0.13769531, + -0.030395508, + -0.04638672, + 0.04345703, + -0.004058838, + 0.140625, + 0.013916016, + -0.020263672, + 0.048828125, + 0.546875, + 0.017333984, + 0.020751953, + 0.05444336, + 0.052490234, + 0.13671875, + 0.02734375, + -0.43554688, + 0.0047302246, + 0.026367188, + 1.28125, + -0.016235352, + 0.07519531, + 0.11425781, + 0.07373047, + 0.16113281, + 0.10498047, + 0.095214844, + 0.010986328, + 0.017944336, + -0.00009536743, + 0.01940918, + -0.03540039, + 0.10888672, + 0.08251953, + -0.33203125, + 0.10595703, + 0.123046875, + 0.14257812, + 0.20214844, + -0.07128906, + -0.032470703, + -0.119628906, + -0.06689453, + 0.1953125, + -0.029052734, + 0.041992188, + -0.171875, + -0.0031738281, + 0.096191406, + 0.08496094, + -0.13574219, + 0.0022735596, + -0.0234375, + 0.13671875, + 0.12011719, + -0.052978516, + 0.06298828, + -0.036621094, + 0.111328125, + -0.029541016, + -0.045410156, + -0.05859375, + 0.07763672, + -0.02734375, + 0.041992188, + 0.045654297, + -0.030761719, + -0.07373047 + ] +} \ No newline at end of file diff --git a/speakers/sohee.json b/speakers/sohee.json new file mode 100644 index 0000000..a5c720b --- /dev/null +++ b/speakers/sohee.json @@ -0,0 +1,2055 @@ +{ + "name": "sohee", + "description": "female_young", + "spk_id": 2864, + "spk_emb": [ + -0.036376953, + 0.045898438, + -0.08642578, + 0.17089844, + 0.076171875, + 0.029174805, + 0.17675781, + -3.609375, + -0.00970459, + -0.03125, + -0.018676758, + 0.012023926, + -0.10839844, + 0.048828125, + -0.171875, + -0.051757812, + -0.11669922, + -0.059814453, + -0.04248047, + 0.05419922, + -0.12988281, + -0.0039367676, + -0.056640625, + 0.00030899048, + 0.0027770996, + 0.03173828, + -0.0056152344, + 0.049316406, + -0.007019043, + 0.09472656, + -0.04711914, + -0.12988281, + 0.017333984, + -0.05883789, + -0.033935547, + -0.10595703, + 0.064453125, + -0.08203125, + 0.041748047, + 0.011169434, + -0.036376953, + -0.24707031, + -0.07324219, + -0.009216309, + -0.032470703, + 0.01965332, + 0.06542969, + 0.17773438, + -0.09082031, + 0.087402344, + 0.09277344, + -0.21191406, + -0.006591797, + -0.11621094, + 0.06347656, + 0.23925781, + -0.0075683594, + 0.0049438477, + -0.007171631, + 0.02734375, + -0.28710938, + 0.036132812, + 0.099121094, + -0.045898438, + 0.015319824, + 0.11328125, + -0.06738281, + -0.14746094, + -0.057861328, + 0.32421875, + 0.026489258, + -0.014099121, + -0.09667969, + -0.10449219, + -0.107421875, + -0.08251953, + -0.13671875, + -0.04345703, + 0.028564453, + 0.041015625, + 0.01586914, + -0.15136719, + -0.072753906, + 0.040039062, + -0.064453125, + 0.072265625, + 0.013549805, + 0.0625, + -0.038085938, + 0.076660156, + 0.067871094, + -0.008972168, + 0.115722656, + -0.016967773, + 0.13867188, + 0.109375, + -0.12597656, + 0.107421875, + -0.007537842, + 0.15332031, + -0.096191406, + -0.06542969, + 0.17285156, + -0.03955078, + -0.088378906, + -0.008972168, + 0.021484375, + -0.063964844, + -0.0005455017, + -0.028442383, + 0.083984375, + -0.003829956, + 0.0390625, + -0.076171875, + -0.12988281, + 0.057128906, + -0.025634766, + -0.09326172, + -0.052001953, + -0.0053710938, + 0.1015625, + 0.052246094, + -0.12402344, + 0.05517578, + 0.18359375, + 0.049316406, + 0.034423828, + 0.0234375, + 0.1875, + -0.011413574, + 0.05883789, + 0.014526367, + 0.011413574, + 0.059326172, + 0.11621094, + 0.009521484, + 0.016967773, + -0.029052734, + -0.0234375, + -0.08496094, + -0.036132812, + 0.09667969, + 0.16894531, + -0.006225586, + -0.019165039, + 0.2265625, + -0.048339844, + 0.0016098022, + -0.018920898, + 0.27539062, + 0.011962891, + 0.005218506, + 0.21484375, + 0.16992188, + -0.045654297, + 0.01574707, + 0.1328125, + 0.083496094, + 0.041503906, + -0.15332031, + 0.08496094, + -0.00015544891, + -0.05834961, + -0.0032958984, + -0.064453125, + 0.06689453, + -3.671875, + 0.095214844, + -0.0154418945, + 0.020385742, + 0.057373047, + 0.026977539, + 0.030883789, + -0.0035705566, + -0.041992188, + -0.028686523, + 0.068847656, + 0.009338379, + 0.022338867, + 0.0703125, + -0.07128906, + 0.23046875, + 0.072265625, + -0.00579834, + 0.041015625, + 0.01953125, + 0.037597656, + 0.08984375, + 0.05053711, + 0.06933594, + 0.09814453, + -0.140625, + 0.055419922, + 0.06689453, + -0.063964844, + 0.033691406, + -0.06933594, + -0.16699219, + -0.003967285, + 0.12402344, + 0.092285156, + 0.20410156, + -0.092285156, + -0.02331543, + -0.016723633, + -0.012878418, + 0.14160156, + 0.11279297, + 0.039794922, + -0.890625, + -0.003326416, + 0.52734375, + 0.061767578, + -0.026245117, + 0.020019531, + 0.020507812, + 0.06591797, + -0.026489258, + -0.029052734, + 0.020996094, + -0.09863281, + -0.10058594, + -0.047607422, + 0.055908203, + -0.045898438, + -0.12988281, + 0.012939453, + -0.071777344, + -0.13867188, + -0.052490234, + -0.028198242, + -0.076171875, + 0.016357422, + -0.060058594, + 0.020629883, + -0.16308594, + -0.16015625, + 0.04248047, + -0.13574219, + 0.18261719, + -0.05517578, + 0.3671875, + 0.14453125, + 0.060302734, + -0.26367188, + -0.016113281, + 0.123046875, + 0.06542969, + 0.07910156, + 0.01171875, + 0.21386719, + -0.017944336, + -0.064941406, + -0.09472656, + -0.048583984, + -0.03955078, + 0.060546875, + -0.14160156, + 0.17480469, + -0.15136719, + 0.017944336, + -0.032714844, + -0.20605469, + 0.016113281, + -0.018676758, + -0.0048217773, + -0.14550781, + -0.0037078857, + 0.08300781, + -0.008972168, + -0.05859375, + 0.0058288574, + 0.33203125, + -0.0010299683, + -0.031982422, + -0.12695312, + -0.09375, + -0.10253906, + 0.036621094, + 0.044677734, + 0.024291992, + 0.11621094, + -0.051757812, + 0.10205078, + -0.1484375, + -0.08203125, + 0.171875, + -0.24511719, + 0.09033203, + -0.063964844, + -0.075683594, + -0.059814453, + -0.010131836, + 0.020629883, + -0.16699219, + -0.052978516, + 0.009765625, + -0.08496094, + -0.06201172, + 0.04663086, + 0.10595703, + 0.125, + -0.056640625, + 0.07763672, + -0.024780273, + 0.035888672, + -0.020629883, + -0.08203125, + 0.083496094, + 0.096191406, + 0.114746094, + 0.12792969, + 0.055419922, + 0.17089844, + -0.14941406, + 0.055908203, + -0.032226562, + 0.22363281, + 0.072265625, + 0.5546875, + -0.04345703, + -0.09082031, + -0.07128906, + 0.203125, + -0.03540039, + 0.099121094, + -0.104003906, + 0.0546875, + -0.052001953, + -0.19824219, + -0.067871094, + -0.068359375, + 0.09863281, + 0.06201172, + -0.037841797, + -0.0033416748, + -0.07910156, + -0.008056641, + 0.08984375, + -0.01361084, + 0.003967285, + -0.071777344, + 0.21972656, + -0.034179688, + -0.20898438, + 0.123535156, + 0.12109375, + 0.03515625, + 0.12207031, + -0.029052734, + 0.12792969, + 0.057373047, + 0.057861328, + -0.16210938, + 0.22460938, + -0.05883789, + 0.072265625, + -0.04736328, + 0.14746094, + -0.36914062, + -0.0029907227, + -0.115722656, + 0.052490234, + 0.15527344, + 0.029663086, + -0.064453125, + -0.12207031, + -0.02331543, + 0.057373047, + 0.08203125, + -0.12109375, + 0.0078125, + 0.043701172, + 0.09277344, + 0.0049743652, + 0.19140625, + -0.03466797, + 0.038085938, + 0.05029297, + 0.024291992, + 0.125, + 0.12988281, + 0.0138549805, + -0.06640625, + -0.007873535, + -0.099609375, + -0.16894531, + -0.16992188, + -0.045654297, + -0.115722656, + 0.052246094, + -0.06347656, + -0.011108398, + -0.14160156, + -0.021484375, + -0.020385742, + -0.025146484, + -0.1015625, + 0.040771484, + 0.028930664, + -0.064941406, + -0.05517578, + -0.19921875, + 0.12011719, + -0.15917969, + 0.08300781, + 0.0070495605, + -0.044921875, + -0.0017471313, + 0.051757812, + 0.041259766, + -0.08105469, + -0.07910156, + -0.03173828, + 0.04272461, + 0.046142578, + 0.028930664, + 0.09277344, + -0.083496094, + 0.15039062, + 0.12207031, + -0.123535156, + -0.05053711, + -0.22265625, + -0.072265625, + 0.24902344, + -0.04711914, + -0.028320312, + -0.07714844, + -0.16015625, + -0.16503906, + -0.040771484, + -0.088378906, + 0.027954102, + -0.060546875, + -0.020141602, + -0.125, + -0.6484375, + 0.020019531, + -0.0016784668, + -0.12890625, + -0.091796875, + -0.08935547, + 0.041503906, + 0.06225586, + -0.08496094, + 0.02746582, + -0.064453125, + -0.057373047, + 0.13378906, + 0.02709961, + 0.015625, + -0.07128906, + -0.067871094, + 0.026855469, + 0.053955078, + 0.13574219, + -0.038085938, + 0.0043640137, + -0.099121094, + -0.072265625, + 0.1640625, + 0.016113281, + -0.08154297, + 0.018920898, + -0.0134887695, + 0.12695312, + 0.12890625, + -0.03173828, + -0.06201172, + -0.11425781, + -0.026733398, + 0.07470703, + -0.09423828, + -0.008483887, + 0.0036621094, + -0.07128906, + 0.056884766, + -0.14550781, + 0.04736328, + 0.111328125, + -0.0063476562, + -0.00037193298, + 0.24609375, + -0.100097656, + 0.03149414, + -0.11230469, + 0.12597656, + 0.06347656, + 0.11425781, + 0.37109375, + -0.0034484863, + 0.051513672, + -0.05834961, + 0.025756836, + 0.0069274902, + -0.103515625, + 0.020385742, + -0.0022888184, + -0.43359375, + -0.09033203, + -0.042236328, + -0.11767578, + 0.140625, + 0.0009918213, + -0.0064697266, + 0.103027344, + 0.109375, + 0.04321289, + 0.09765625, + 0.022338867, + 0.041259766, + 0.043945312, + 0.16015625, + -0.13574219, + -0.068359375, + 0.00491333, + 0.12060547, + -0.026245117, + 0.018310547, + 0.013977051, + -0.00091552734, + -0.0625, + 0.0036621094, + 0.072265625, + -0.10595703, + 0.053466797, + 0.011474609, + 0.09277344, + -0.046875, + -0.09863281, + -0.028442383, + -0.068359375, + -0.014831543, + -0.119140625, + -0.061279297, + 0.019042969, + 0.02758789, + 0.0079956055, + -0.07080078, + 0.12695312, + -0.092285156, + 0.06933594, + 0.022583008, + 0.056396484, + 0.059326172, + 0.017089844, + -0.04296875, + -0.012451172, + 0.02734375, + 0.03125, + 0.056640625, + -0.3203125, + -0.07519531, + 0.050048828, + 0.025512695, + -0.12158203, + -0.01977539, + 0.12890625, + 0.06298828, + -0.010314941, + 0.05883789, + 0.100097656, + -0.063964844, + 0.16308594, + 0.015319824, + -0.083496094, + -0.056884766, + -0.030273438, + 0.016723633, + -0.16015625, + 0.0011978149, + -0.12890625, + -0.15917969, + 0.0390625, + -0.06201172, + 0.01977539, + -0.041259766, + -0.048828125, + -0.076660156, + 0.15332031, + 0.09472656, + 0.092285156, + 0.032958984, + 0.032958984, + -0.010375977, + 0.0049438477, + -0.030639648, + 0.10595703, + 0.025268555, + -0.09375, + 0.032470703, + -0.037353516, + -0.07763672, + 0.107421875, + -0.05126953, + -0.037597656, + 0.016357422, + 0.043701172, + 0.048339844, + 0.04272461, + -0.23925781, + -0.05859375, + -0.024780273, + -0.005554199, + -0.09765625, + -0.076660156, + -0.021118164, + -0.06201172, + -0.041748047, + 0.0703125, + -0.07324219, + -0.09814453, + 0.25976562, + 0.0859375, + 0.0053710938, + -0.01928711, + -0.16601562, + -0.140625, + -0.07080078, + 0.13183594, + -0.18359375, + 0.028198242, + 0.08251953, + -0.01965332, + 0.045654297, + 0.05517578, + 0.010009766, + 0.04296875, + -0.09667969, + -0.30859375, + -0.008911133, + -0.15136719, + 0.021728516, + -0.087890625, + -0.08544922, + -0.14160156, + 0.15136719, + -0.06542969, + -0.041015625, + 0.033935547, + 0.13378906, + 0.012084961, + 0.092285156, + 0.109375, + 0.012939453, + 0.057128906, + -0.09472656, + -0.09326172, + 0.1875, + -0.0038146973, + -0.076660156, + 0.084472656, + -0.057128906, + -0.0043640137, + -0.03857422, + 0.119140625, + -0.09423828, + -0.5390625, + 0.13574219, + -0.010681152, + -0.14160156, + 0.049560547, + 0.18652344, + -0.072265625, + -0.16992188, + -0.0012588501, + -0.036376953, + 0.06591797, + -0.16210938, + -0.109375, + 0.005554199, + 0.16210938, + -0.018676758, + 0.17871094, + 0.06689453, + -0.026733398, + -0.035888672, + 0.057128906, + 0.038085938, + -0.036621094, + 0.03540039, + -0.037597656, + 0.009887695, + -0.021850586, + 0.04248047, + -0.033935547, + -0.079589844, + -0.16503906, + -0.03881836, + 0.044921875, + 0.0061950684, + -0.1796875, + 0.08642578, + -0.14160156, + -0.14160156, + 0.037109375, + -0.09716797, + -0.072753906, + 0.08105469, + -0.060546875, + -0.040039062, + -0.09863281, + 0.10449219, + -0.026489258, + 0.17578125, + 0.0034942627, + -0.07519531, + -0.06591797, + -0.056884766, + -0.015380859, + 0.06225586, + -0.010803223, + -0.20214844, + -0.41601562, + -0.05908203, + 0.021728516, + -0.10253906, + 0.24414062, + 0.2890625, + 0.0546875, + -0.030639648, + 0.04663086, + 0.018920898, + 0.103027344, + 0.021484375, + 0.017456055, + 0.12597656, + 0.029174805, + -0.040527344, + -0.029052734, + 0.019897461, + 0.033447266, + -0.007080078, + 0.018798828, + -0.041259766, + 0.014526367, + 0.055419922, + 0.14453125, + 0.13085938, + 0.015319824, + 0.0004005432, + -0.056884766, + -0.057128906, + 0.047607422, + -0.009887695, + 0.14746094, + -0.032470703, + 0.0015487671, + -0.00970459, + -0.014404297, + 0.00050354004, + -0.13769531, + -0.07080078, + -0.063964844, + 0.059570312, + -0.06591797, + -0.068359375, + -0.053955078, + 0.061279297, + 0.06591797, + 0.16015625, + -0.012390137, + 0.05883789, + 0.08544922, + 0.033447266, + -0.008483887, + 0.03564453, + 0.076171875, + 0.16308594, + -0.026000977, + -0.044677734, + -0.21386719, + -0.020874023, + -0.041748047, + -0.052734375, + -0.20214844, + -0.014587402, + 0.031982422, + 0.031982422, + -0.02331543, + 0.18652344, + -0.036132812, + 0.05078125, + 0.16015625, + 0.025024414, + -0.10498047, + 0.052734375, + -0.064453125, + 0.059570312, + 0.080078125, + -0.052001953, + -0.010498047, + -0.22167969, + -0.00970459, + 0.03491211, + 0.08300781, + 0.064941406, + 0.04321289, + 0.016723633, + 0.0050964355, + -0.17285156, + -0.032714844, + 0.037841797, + -0.00062561035, + -0.114746094, + -0.049804688, + -0.06347656, + 0.24121094, + -0.026367188, + -0.049560547, + 0.09423828, + 0.028076172, + 0.021728516, + -0.02709961, + -0.13867188, + -0.21386719, + -0.56640625, + 0.05834961, + 0.049804688, + -0.030151367, + -0.12597656, + -0.1171875, + -0.21582031, + -0.0072021484, + -0.052246094, + -0.02331543, + 0.0018005371, + -0.001335144, + -0.05834961, + 0.051513672, + -0.13183594, + -0.018554688, + 0.107421875, + -0.01361084, + -0.024414062, + -0.14648438, + 0.028320312, + -0.053222656, + 0.13085938, + -0.0019836426, + 0.08105469, + 0.24414062, + 0.11230469, + 0.4140625, + 0.07714844, + -0.08642578, + -0.02758789, + 0.024780273, + -0.072753906, + 0.18164062, + 0.7109375, + 0.18945312, + -0.045410156, + 0.011169434, + -0.052734375, + -0.03540039, + 0.13964844, + -0.20117188, + 0.009216309, + 0.44335938, + -0.084472656, + -0.012756348, + 0.11767578, + -0.099609375, + 0.16015625, + -0.078125, + 0.13574219, + 0.008972168, + -0.115722656, + 0.05078125, + -0.16015625, + 0.1328125, + 0.006591797, + -0.27148438, + -0.02355957, + 0.032226562, + -0.041015625, + -0.0009765625, + -0.099121094, + 0.109375, + 0.33007812, + -0.041015625, + 0.22070312, + 0.067871094, + 0.09277344, + 0.02709961, + -0.028808594, + -0.13183594, + 0.11376953, + 0.072753906, + -0.012573242, + 0.03466797, + 0.140625, + 0.025024414, + -0.14257812, + -0.07324219, + -0.07373047, + 0.06298828, + -0.0010147095, + -0.123535156, + -0.0033416748, + 0.041748047, + 0.030761719, + -0.01574707, + -0.0058898926, + -0.02758789, + 0.29296875, + -0.044677734, + 0.22070312, + -0.13378906, + 0.015625, + -0.020751953, + -0.040527344, + -0.13183594, + 0.12890625, + -0.14453125, + 0.1328125, + -0.020019531, + -0.06591797, + -0.119140625, + -0.08886719, + 0.22265625, + 0.11376953, + 0.09863281, + -0.0024108887, + -0.07763672, + 0.07324219, + -0.021484375, + 0.16699219, + -0.14550781, + -0.021362305, + -0.040039062, + -0.083496094, + 0.026367188, + 0.11425781, + 0.08544922, + 0.22753906, + -0.06689453, + 0.012939453, + 0.10498047, + 0.09277344, + 0.057373047, + -0.011413574, + -0.13378906, + 0.103515625, + -0.22460938, + -0.050048828, + -0.031982422, + -0.030029297, + 0.12109375, + 0.095214844, + -0.05517578, + 0.067871094, + 0.11425781, + 0.0859375, + -0.06591797, + 0.24511719, + -0.1015625, + 0.03540039, + 0.005126953, + -0.028564453, + 0.0625, + 0.071777344, + 0.052734375, + -0.13183594, + 0.02319336, + -0.045410156, + 0.014282227, + 0.025512695, + -0.037109375, + -0.059814453, + -0.09667969, + -0.061279297, + -0.09765625, + -0.06982422, + -0.095703125, + -0.087890625, + 0.10986328, + -0.09814453, + 0.06298828, + 0.42773438, + 0.18261719, + 0.06982422, + -0.2109375, + -0.017578125, + -0.16015625, + 0.004180908, + 0.010131836, + 0.122558594, + 0.09667969, + -0.010131836, + -0.05908203, + -0.068847656, + 0.08496094, + -0.09667969, + -0.030151367, + -0.06933594, + -0.1328125, + 0.021728516, + -0.104003906, + 0.045654297, + -0.052001953, + 0.12695312, + -0.000017046928, + -0.030395508, + -0.079589844, + -0.038330078, + 0.25976562, + -0.1328125, + 0.064453125, + -0.07519531, + -0.036865234, + 0.068359375, + -0.11230469, + -0.0234375, + -0.060791016, + -0.059326172, + -0.064941406, + -0.044677734, + -0.024414062, + 0.033447266, + 0.20996094, + -0.068359375, + -0.0087890625, + 0.12695312, + 0.010498047, + 0.026489258, + -0.17285156, + 0.027832031, + 0.01940918, + -0.007080078, + -0.11621094, + -0.009033203, + -0.014709473, + 0.03955078, + -0.08496094, + 0.11669922, + -0.14941406, + -0.31054688, + -0.071777344, + 0.115234375, + -0.079589844, + 0.015197754, + 0.08203125, + 0.12890625, + 0.0005912781, + 0.029174805, + -0.06347656, + 0.16308594, + -0.041503906, + 0.12695312, + -0.016967773, + 0.16015625, + -0.048828125, + 0.018188477, + 0.044677734, + 0.095703125, + -0.103515625, + 0.30078125, + 0.019897461, + 0.03515625, + -0.15527344, + 0.06542969, + 0.09814453, + -0.052246094, + -0.056396484, + -0.09277344, + 0.119628906, + -0.07421875, + -0.22558594, + 0.08203125, + -0.091796875, + 0.010253906, + -0.060058594, + -0.032226562, + 0.5703125, + 0.59375, + -0.15625, + 0.171875, + -0.06298828, + -0.084472656, + 0.2734375, + -0.0016021729, + -0.09814453, + -0.35742188, + -0.013122559, + -0.1484375, + 0.15722656, + -0.091796875, + -0.012512207, + -0.067871094, + 0.1875, + 0.09765625, + -0.00970459, + -0.03857422, + -0.09863281, + -0.048583984, + 0.012634277, + -0.0546875, + -0.16503906, + -0.012573242, + -0.0028839111, + 0.0065307617, + 0.26171875, + 0.15039062, + -0.018066406, + -0.01940918, + 0.13671875, + 0.0030517578, + -0.05859375, + -0.013916016, + -0.13769531, + 0.12988281, + -0.053955078, + -0.068359375, + 0.10498047, + 0.119140625, + 0.084472656, + -0.029296875, + -0.037353516, + 0.046142578, + -0.043701172, + 0.0049438477, + 0.080078125, + -0.078125, + -0.22167969, + -0.057861328, + 0.012268066, + 0.033935547, + 0.0099487305, + 0.029785156, + -0.08642578, + 0.004272461, + -0.09765625, + 0.11621094, + 0.16308594, + -0.012878418, + -0.008728027, + 0.3046875, + 0.12695312, + 0.037597656, + 0.052734375, + 0.07861328, + -0.10595703, + 0.038330078, + -0.26757812, + 0.01953125, + 0.07324219, + -0.038330078, + 0.0625, + 0.09082031, + -0.09472656, + -0.004638672, + -0.04321289, + -0.040771484, + -0.080566406, + -0.01928711, + 0.09863281, + -0.18554688, + 0.026245117, + -0.1953125, + -0.008422852, + 0.091796875, + 0.03112793, + 0.09375, + -0.05102539, + 0.17089844, + -0.025146484, + -0.08251953, + 0.14257812, + -0.040283203, + 0.08154297, + -0.03930664, + -0.021362305, + -0.044677734, + -0.40820312, + -0.032226562, + -0.068359375, + 0.029907227, + -0.07910156, + 0.1484375, + -0.11035156, + 0.22460938, + -0.099121094, + 0.099121094, + -0.050048828, + -0.05029297, + 0.080566406, + 0.025878906, + -0.079589844, + 0.080078125, + -0.08691406, + 0.12890625, + 0.011657715, + 0.21386719, + 0.0390625, + 0.14355469, + -0.017944336, + 0.109375, + -0.0037231445, + 0.009643555, + 0.19726562, + 0.12890625, + 0.10107422, + 0.01953125, + -0.061279297, + -0.095703125, + 0.03857422, + 0.00009250641, + -0.03515625, + -0.020874023, + 0.0002746582, + -0.038085938, + 0.08691406, + 0.119628906, + -0.05883789, + -0.05834961, + -0.048339844, + -0.16503906, + 0.11328125, + 0.0025787354, + -0.018920898, + 0.020141602, + -0.063964844, + -0.015075684, + 0.16894531, + -0.110839844, + 0.1484375, + -0.021850586, + -0.04272461, + -0.44921875, + -0.16210938, + 0.08154297, + -0.0055236816, + 0.053710938, + -0.00793457, + -0.044433594, + -0.033935547, + 0.043701172, + 0.008911133, + 0.44921875, + 0.17675781, + 0.06689453, + -0.0126953125, + 0.17382812, + 0.13867188, + 0.12011719, + -0.1953125, + 0.091308594, + -0.013793945, + 0.0063476562, + -0.047851562, + 0.0021820068, + 0.040527344, + 0.05493164, + 0.07128906, + -0.047607422, + -0.053466797, + -0.051513672, + 0.068847656, + 0.08300781, + 0.063964844, + 0.005126953, + -0.040527344, + 0.15722656, + -0.07080078, + 0.020629883, + 0.12988281, + -0.16503906, + -0.16308594, + -0.052978516, + -0.056884766, + 0.08691406, + -0.06298828, + 0.017089844, + -0.083496094, + -0.08642578, + -0.017089844, + 0.040283203, + 0.012023926, + -0.09667969, + -0.0030212402, + -0.107910156, + 0.0007095337, + 0.055908203, + 0.008178711, + 0.09033203, + -0.09375, + 0.053222656, + 0.15234375, + 0.12060547, + -0.10498047, + 0.036132812, + -0.21386719, + 0.16503906, + 0.14746094, + -0.05053711, + 0.13867188, + -0.12597656, + 0.03466797, + -0.13378906, + -0.10986328, + 0.049804688, + -0.05810547, + -0.06640625, + 0.009399414, + 0.07470703, + -0.2890625, + -0.09082031, + 0.026245117, + 0.05883789, + 0.040283203, + 0.009216309, + 0.033447266, + -0.10205078, + -0.079589844, + -0.21191406, + -0.09863281, + 0.1015625, + -0.0037841797, + -0.02331543, + -0.15429688, + 0.024658203, + -0.0703125, + -0.16601562, + 0.09765625, + -0.05859375, + -0.083496094, + 0.13378906, + -0.004547119, + -0.13964844, + 0.028442383, + 0.021362305, + 0.07470703, + 0.087402344, + -0.064453125, + -0.016967773, + 0.103515625, + -0.0019378662, + 0.027832031, + -0.041503906, + 0.20898438, + 0.106933594, + 0.005584717, + 0.10253906, + 0.01361084, + -0.052246094, + -0.050048828, + -0.07324219, + 0.005493164, + -0.24121094, + 0.04711914, + 0.03466797, + -0.0008201599, + 0.123535156, + -0.100097656, + 0.017822266, + 0.08154297, + -0.1875, + 0.022338867, + -0.07519531, + -0.037841797, + -0.10205078, + -0.06738281, + 0.1328125, + 0.041503906, + -0.11425781, + -0.033203125, + -0.026245117, + -0.037841797, + 0.033691406, + 0.04638672, + -0.029663086, + 0.10498047, + 0.17480469, + 0.17578125, + 0.00289917, + -0.029052734, + 0.028564453, + 0.095214844, + -0.28125, + -0.04272461, + -0.07373047, + 0.048828125, + 0.05883789, + 0.045166016, + -0.39257812, + -0.21386719, + -0.119140625, + -0.03930664, + -0.063964844, + 0.13867188, + -0.049560547, + -0.17578125, + -0.04638672, + -0.01953125, + -0.08691406, + -0.03930664, + 0.037109375, + 0.06689453, + 2.421875, + 0.076171875, + -0.06982422, + 0.05908203, + -0.12011719, + -0.0859375, + 0.03100586, + -0.07519531, + -0.076660156, + -0.05029297, + 0.11669922, + 0.14550781, + 0.048095703, + 0.0062561035, + 0.10058594, + 0.16992188, + 0.11035156, + -0.08300781, + 0.04248047, + 0.25390625, + -0.16113281, + 0.15332031, + -0.16699219, + -0.15625, + -0.10449219, + 0.011962891, + -0.02355957, + -0.011962891, + -0.072753906, + 0.07910156, + 0.030639648, + 0.033203125, + -0.013183594, + -0.10546875, + -0.059326172, + 0.01953125, + 0.03491211, + -0.09765625, + -0.020263672, + 0.21582031, + -0.12890625, + -0.028564453, + 0.16601562, + -0.067871094, + -0.033447266, + 0.064941406, + 0.001739502, + -0.16308594, + 0.034179688, + -0.1484375, + -0.032714844, + -0.15429688, + -0.043701172, + -0.17089844, + 0.2109375, + 0.030517578, + 0.03515625, + 0.083984375, + 0.106933594, + 0.103515625, + 0.12597656, + 0.019165039, + 0.049804688, + -0.014709473, + 0.11425781, + 0.0859375, + 0.078125, + -0.22070312, + -0.111328125, + -0.16503906, + -0.16699219, + 0.18066406, + 0.046142578, + -0.13085938, + -0.033691406, + -0.0056152344, + -0.15039062, + -0.0018234253, + -0.032714844, + -0.04272461, + 0.12158203, + 0.7578125, + 0.14648438, + 0.08154297, + 0.1796875, + 0.047607422, + 0.3125, + 0.014770508, + 0.0069885254, + 0.114746094, + -0.028808594, + 0.048583984, + 0.017333984, + -0.07128906, + 0.00009870529, + 0.071777344, + 0.27148438, + 0.01184082, + -0.296875, + 0.03955078, + -0.060546875, + -0.0019989014, + 0.026367188, + -0.27539062, + -0.001663208, + -0.14550781, + 0.171875, + 0.05029297, + -0.09375, + 0.05810547, + -0.12158203, + 0.019165039, + -0.092285156, + 0.34765625, + -0.008605957, + 0.04663086, + -0.10546875, + 0.012634277, + 0.040283203, + 0.01361084, + 0.16894531, + -0.12988281, + -0.0054626465, + -0.13183594, + 0.0053710938, + -0.049804688, + -0.13769531, + -0.106933594, + 0.16992188, + 0.06591797, + 0.07080078, + -0.043701172, + -0.013977051, + 0.026611328, + 0.10888672, + -0.23144531, + -0.014160156, + -0.05517578, + 0.01953125, + 0.026367188, + 0.024047852, + 0.056152344, + 0.009399414, + 0.17773438, + -0.34960938, + -0.020263672, + 0.0049438477, + -0.12792969, + 0.13574219, + -0.063964844, + 0.041748047, + -0.033203125, + 0.002960205, + 0.038330078, + -0.028808594, + 0.091308594, + 0.15332031, + 0.3125, + -0.13769531, + -0.068847656, + -0.27734375, + -0.07470703, + -0.038330078, + 0.07763672, + -0.040527344, + -0.007171631, + -0.3125, + -0.115234375, + 0.080078125, + 0.1484375, + -0.13476562, + -0.31640625, + -0.063964844, + 0.0012969971, + 0.031982422, + 0.045898438, + 0.20507812, + 0.033203125, + -0.0070495605, + -0.09814453, + 0.035888672, + 0.05810547, + -0.0012817383, + 0.05859375, + -0.01184082, + -0.019897461, + 0.09472656, + 0.040527344, + 0.11767578, + 0.041259766, + -0.13964844, + -0.072753906, + 0.057861328, + 0.02368164, + -0.014221191, + 0.040527344, + -0.22949219, + -0.063964844, + 0.044677734, + -0.022094727, + -0.017211914, + 0.010192871, + -0.040039062, + 0.06640625, + -0.028442383, + -0.32226562, + 0.045654297, + -0.13867188, + -0.096191406, + -0.037109375, + -0.096191406, + 0.043701172, + 0.06347656, + 0.02734375, + -0.037109375, + 0.022949219, + -0.072753906, + 0.62109375, + 0.004058838, + -0.12792969, + 0.013427734, + -0.1015625, + 0.014038086, + -0.04736328, + 0.03100586, + -0.0154418945, + 0.047607422, + 0.072265625, + 0.026489258, + -0.083984375, + -0.037353516, + 0.029296875, + 0.0029296875, + 0.13183594, + -0.050048828, + 0.080566406, + -0.012939453, + -0.079589844, + -0.11035156, + -0.080078125, + -0.03955078, + -0.13378906, + 0.12011719, + -0.036376953, + -0.064453125, + 0.1328125, + -0.17285156, + -0.14355469, + 0.021850586, + 0.53515625, + 0.09863281, + -0.23046875, + 0.17675781, + -0.037109375, + -0.0025939941, + 0.04296875, + 0.13574219, + -0.2109375, + -0.033203125, + 0.13183594, + -0.010070801, + 0.020507812, + -0.16015625, + 0.05834961, + 0.11767578, + 0.029907227, + -0.045898438, + -0.037841797, + -0.064941406, + -0.0703125, + -0.05029297, + 0.088378906, + -0.018432617, + -0.032714844, + 0.17285156, + -0.092285156, + -0.08300781, + 0.13183594, + 0.072265625, + 0.0038757324, + 0.03515625, + -0.018554688, + -0.14941406, + 0.08496094, + 0.13867188, + 0.0546875, + -0.03112793, + 0.057617188, + -0.04248047, + 0.005126953, + -0.061767578, + -0.36328125, + 0.09423828, + 0.12792969, + -0.203125, + 0.064453125, + -0.12402344, + 0.029296875, + 0.004180908, + 0.0013809204, + 0.009521484, + -0.025756836, + -0.095214844, + 0.044433594, + 0.033447266, + -0.0625, + -0.021972656, + -0.12109375, + 0.08203125, + 0.02722168, + 0.008117676, + -0.14453125, + 0.14257812, + -0.11425781, + 0.0032196045, + -0.021972656, + 0.036865234, + 0.27539062, + -0.078125, + -0.14160156, + 0.020751953, + 0.20507812, + 0.104003906, + 0.010986328, + 0.17382812, + -0.046875, + -0.014465332, + 0.08105469, + 0.07324219, + 0.10546875, + 0.024291992, + 0.1484375, + -0.0066833496, + 0.028808594, + -0.071777344, + 0.01977539, + 0.057617188, + 0.022705078, + -0.072753906, + -0.034423828, + -0.026855469, + -0.06201172, + -0.0390625, + -0.072753906, + -0.25390625, + 0.03466797, + 0.546875, + 0.18359375, + 0.02734375, + -0.020996094, + -0.032714844, + 0.030395508, + -0.09863281, + -0.12207031, + -0.02319336, + 0.099609375, + -0.12060547, + -0.11230469, + -0.16894531, + 0.16601562, + -0.29882812, + 0.051757812, + 0.076171875, + -0.021850586, + -0.24609375, + -0.06933594, + 0.06933594, + 0.001373291, + 0.12011719, + -0.083496094, + -0.10644531, + -0.07128906, + -0.13671875, + 0.09082031, + -0.00390625, + 0.0047912598, + -0.049560547, + 0.095214844, + -0.0013656616, + -0.078125, + 0.25195312, + 0.0010604858, + -0.109375, + -0.029907227, + 0.0028839111, + -0.0054016113, + -0.040527344, + 0.123046875, + -0.07763672, + 0.1953125, + 0.099121094, + -0.064941406, + 0.22363281, + 0.11669922, + 0.09765625, + -0.031982422, + -0.125, + -0.008850098, + -0.006011963, + -0.18652344, + 0.031982422, + -0.05834961, + 0.05029297, + 0.10107422, + 0.39453125, + 0.009643555, + 0.0053710938, + 0.049072266, + 0.064941406, + -0.09082031, + 0.0859375, + -0.012084961, + -0.17089844, + 0.11279297, + 0.059570312, + -0.28125, + -0.044921875, + -0.008605957, + -0.063964844, + -0.067871094, + -0.0014877319, + -0.11816406, + 0.067871094, + -0.0036773682, + -0.6640625, + -0.08886719, + -0.119140625, + 0.099609375, + -0.05908203, + 0.049316406, + 0.06298828, + -0.030273438, + 0.032226562, + -0.12109375, + -0.16894531, + 0.010986328, + 0.11767578, + 0.028320312, + -0.076171875, + 0.056640625, + 0.063964844, + 0.044189453, + 0.037353516, + 0.08691406, + -0.099609375, + 0.12988281, + -0.08154297, + -0.095703125, + 0.05444336, + 0.009521484, + 0.10498047, + 0.016479492, + 0.095703125, + -0.020751953, + -0.111816406, + -0.10107422, + -0.1640625, + 0.15820312, + -0.001701355, + 0.07470703, + -0.096191406, + -0.0048217773, + -0.080566406, + 0.30664062, + -0.087890625, + 0.0087890625, + -0.03564453, + 0.16796875, + -0.12597656, + 0.11425781, + 0.060791016, + -0.10253906, + 0.19824219, + -0.19433594, + 0.07519531, + -0.03515625, + 0.012145996, + 0.17578125, + -0.00007200241, + -0.050048828, + 0.13964844, + -0.09375, + 0.06347656, + 0.07373047, + -0.12988281, + 0.00037193298, + 0.0040283203, + 0.04321289, + 0.022705078, + -0.029418945, + 0.025024414, + 0.071777344, + 0.067871094, + -0.033691406, + -0.106933594, + -0.021484375, + 13.375, + 0.22167969, + 0.02319336, + 0.079589844, + -0.08300781, + -0.0033874512, + 0.05517578, + -0.01361084, + 0.025878906, + 0.022827148, + -0.1484375, + -0.055908203, + 0.016845703, + 0.08154297, + 0.018310547, + 0.026245117, + 0.09375, + -0.095214844, + -0.045654297, + 0.024780273, + 0.07714844, + 0.076660156, + -0.04248047, + -0.050048828, + 0.18261719, + 0.057373047, + 0.033203125, + -0.025634766, + 0.16992188, + 0.027709961, + -0.0001449585, + 0.0036315918, + 0.03100586, + 0.029785156, + 0.00491333, + 0.040039062, + 0.006500244, + 0.107910156, + -0.012145996, + 0.0014190674, + -0.044677734, + 0.140625, + 0.030151367, + 0.0859375, + 0.030761719, + -0.09375, + -0.037109375, + 0.11328125, + -0.08300781, + 0.063964844, + -0.08691406, + -0.008300781, + 0.032470703, + 0.0005569458, + 0.013549805, + 0.068359375, + 0.072265625, + 0.00579834, + 0.10888672, + -0.19140625, + -0.10644531, + 0.068847656, + 0.0014877319, + -0.33789062, + -0.029052734, + 0.018188477, + 0.0036010742, + -0.12695312, + 0.09082031, + -0.07470703, + -0.060302734, + -0.10205078, + -0.02319336, + -0.10058594, + -0.024169922, + -0.028686523, + 0.012145996, + -0.029052734, + 0.026245117, + -0.03955078, + -0.015991211, + 0.033935547, + 0.12890625, + 0.18554688, + -0.123046875, + 0.013305664, + -0.09472656, + 0.0018463135, + -0.0087890625, + 0.041015625, + -0.037597656, + -0.15625, + 0.41210938, + 0.087890625, + -0.01574707, + -0.12890625, + 0.027709961, + 0.21191406, + 0.06640625, + -0.125, + -0.0859375, + 0.010864258, + 1.359375, + -0.091796875, + -0.08154297, + 0.067871094, + -0.14453125, + 0.091308594, + -0.06738281, + 0.07714844, + 0.07128906, + 0.02368164, + -0.03955078, + -0.04272461, + 0.05419922, + 0.091308594, + 0.05102539, + -0.484375, + -0.010437012, + 0.040527344, + 0.041748047, + 0.088378906, + 0.10253906, + 0.15625, + -0.061035156, + -0.043701172, + 0.18554688, + 0.018310547, + 0.028808594, + -0.09326172, + 0.057128906, + -0.011352539, + 0.3515625, + -0.025634766, + -0.099121094, + 0.020996094, + 0.06640625, + 0.092285156, + -0.12988281, + -0.029296875, + -0.07324219, + -0.021118164, + -0.020507812, + 0.099609375, + 0.008422852, + 0.017089844, + 0.029907227, + 0.15527344, + 0.080566406, + -0.03540039, + 0.022949219 + ] +} \ No newline at end of file diff --git a/speakers/uncle_fu.json b/speakers/uncle_fu.json new file mode 100644 index 0000000..a958cdd --- /dev/null +++ b/speakers/uncle_fu.json @@ -0,0 +1,2055 @@ +{ + "name": "uncle_fu", + "description": "male_middle", + "spk_id": 3010, + "spk_emb": [ + -0.027954102, + -0.032226562, + -0.029174805, + -0.064453125, + 0.0026550293, + -0.103027344, + 0.12597656, + -3.59375, + -0.033691406, + 0.14160156, + 0.07373047, + 0.071777344, + -0.12109375, + 0.13085938, + -0.044189453, + 0.029541016, + -0.00793457, + 0.08886719, + -0.0049438477, + -0.036621094, + -0.07373047, + -0.025634766, + -0.0859375, + -0.033691406, + 0.011108398, + 0.0859375, + -0.009216309, + 0.140625, + -0.0146484375, + 0.0028839111, + 0.015380859, + -0.05834961, + 0.071777344, + -0.0021972656, + 0.26367188, + -0.033203125, + -0.08886719, + -0.017089844, + -0.083984375, + -0.011291504, + 0.04711914, + -0.19726562, + -0.008117676, + -0.2890625, + -0.111328125, + -0.09375, + -0.08935547, + -0.024536133, + -0.0703125, + -0.104003906, + 0.015258789, + -0.072265625, + -0.13574219, + 0.028442383, + 0.125, + 0.055664062, + -0.0073242188, + 0.030639648, + 0.06201172, + 0.028686523, + -0.103027344, + 0.072265625, + 0.08886719, + 0.048583984, + -0.057373047, + 0.38476562, + 0.059570312, + -0.02368164, + 0.048583984, + 0.3203125, + -0.024414062, + 0.03466797, + -0.11816406, + -0.037353516, + -0.17089844, + -0.088378906, + -0.13671875, + -0.083496094, + 0.004333496, + 0.012451172, + 0.014709473, + 0.00044631958, + -0.056884766, + 0.07421875, + -0.087402344, + -0.12597656, + 0.052490234, + 0.091796875, + -0.060546875, + -0.016967773, + 0.0048217773, + -0.07910156, + 0.08300781, + -0.005126953, + -0.0024719238, + 0.15429688, + 0.047851562, + 0.119140625, + 0.09765625, + 0.043945312, + -0.11279297, + -0.1796875, + 0.1171875, + 0.020996094, + 0.004699707, + -0.017822266, + -0.10546875, + 0.018310547, + -0.0087890625, + 0.00008106232, + -0.013793945, + -0.13867188, + -0.04638672, + -0.09326172, + -0.114746094, + 0.06298828, + 0.111816406, + 0.03540039, + 0.14941406, + 0.0022125244, + 0.16992188, + 0.37304688, + -0.014465332, + 0.016845703, + 0.10449219, + 0.01928711, + -0.068847656, + -0.13964844, + 0.13574219, + -0.009277344, + 0.07080078, + 0.20019531, + 0.08642578, + -0.01550293, + 0.064453125, + 0.0051879883, + 0.115722656, + -0.00028038025, + 0.16699219, + -0.17871094, + -0.045654297, + 0.052490234, + 0.064941406, + -0.10644531, + -0.063964844, + 0.34375, + -0.044433594, + -0.032226562, + -0.03955078, + 0.0070495605, + 0.114746094, + -0.103515625, + 0.11816406, + 0.4765625, + 0.045410156, + -0.100097656, + 0.18847656, + 0.055664062, + 0.045654297, + -0.044921875, + -0.06591797, + 0.036132812, + -0.03564453, + -0.005218506, + -0.087890625, + -0.014221191, + -3.546875, + -0.12451172, + 0.063964844, + -0.008178711, + 0.09277344, + 0.059326172, + 0.0043945312, + 0.07421875, + -0.140625, + 0.017578125, + 0.0234375, + 0.08300781, + -0.005645752, + 0.03955078, + 0.12060547, + 0.25585938, + 0.1171875, + -0.16308594, + -0.0138549805, + -0.12597656, + 0.013977051, + 0.0057373047, + 0.10449219, + -0.015319824, + -0.088378906, + -0.064453125, + -0.046142578, + -0.01574707, + 0.0047912598, + 0.10058594, + -0.11425781, + -0.05078125, + 0.025146484, + 0.04345703, + -0.11035156, + 0.063964844, + -0.0546875, + -0.099121094, + 0.12890625, + 0.22070312, + 0.15136719, + 0.012023926, + 0.07910156, + -0.24414062, + 0.12109375, + 0.1484375, + 0.026123047, + 0.034423828, + 0.171875, + -0.27929688, + 0.060058594, + -0.10107422, + 0.047851562, + -0.05883789, + -0.018554688, + -0.083984375, + -0.052001953, + -0.011352539, + -0.071777344, + 0.19335938, + 0.007873535, + 0.0034332275, + 0.05908203, + 0.022094727, + -0.08642578, + 0.0027008057, + -0.039794922, + -0.05859375, + -0.01940918, + -0.044189453, + -0.17382812, + -0.16894531, + -0.15332031, + 0.051757812, + -0.032958984, + -0.015991211, + 0.08496094, + 0.068847656, + -0.08984375, + -0.27929688, + -0.01171875, + 0.07519531, + 0.03112793, + -0.07373047, + 0.020874023, + 0.056396484, + -0.067871094, + 0.0011672974, + -0.09765625, + -0.064453125, + -0.04663086, + -0.006134033, + -0.011779785, + -0.087402344, + -0.1015625, + 0.10107422, + -0.026733398, + -0.048095703, + -0.038330078, + -0.076171875, + -0.044921875, + -0.06542969, + -0.0044555664, + -0.0107421875, + -0.75, + -0.041259766, + 0.328125, + 0.06640625, + -0.072753906, + -0.059814453, + 0.0009765625, + 0.0028533936, + 0.07080078, + -0.0024414062, + 0.012573242, + -0.017089844, + 0.12988281, + 0.022827148, + -0.049072266, + -0.16601562, + 0.04272461, + -0.46484375, + -0.016113281, + -0.008544922, + -0.08203125, + -0.06982422, + 0.083496094, + -0.026855469, + -0.14453125, + -0.076660156, + -0.02746582, + -0.09082031, + -0.045410156, + 0.103027344, + 0.23535156, + 0.0703125, + -0.053466797, + 0.055908203, + -0.13183594, + -0.10839844, + -0.08886719, + -0.053466797, + 0.029296875, + 0.0625, + -0.048828125, + 0.15332031, + 0.06298828, + -0.044921875, + -0.05810547, + 0.036621094, + -0.17773438, + -0.10644531, + -0.025512695, + 0.4453125, + -0.13964844, + -0.04345703, + -0.033935547, + 0.103027344, + -0.0045776367, + 0.17089844, + -0.07861328, + 0.04248047, + -0.15234375, + -0.10986328, + -0.110839844, + -0.14941406, + 0.111328125, + -0.030761719, + -0.099121094, + 0.07910156, + -0.06347656, + 0.030029297, + 0.119628906, + -0.032470703, + -0.07421875, + -0.048583984, + 0.30078125, + 0.026000977, + -0.21289062, + -0.008972168, + 0.0234375, + 0.10595703, + 0.17382812, + -0.20703125, + 0.044433594, + -0.057617188, + 0.16992188, + -0.12158203, + 0.41992188, + -0.036376953, + -0.14550781, + -0.125, + 0.004852295, + -0.22949219, + -0.022460938, + -0.032958984, + 0.057373047, + -0.0072021484, + -0.061279297, + 0.06689453, + 0.037109375, + 0.0041503906, + 0.10498047, + -0.044677734, + -0.029907227, + -0.07128906, + 0.06738281, + 0.13574219, + 0.0031433105, + 0.20605469, + -0.031982422, + -0.011657715, + -0.13671875, + -0.009765625, + -0.064941406, + 0.006134033, + -0.10107422, + 0.029907227, + 0.010498047, + -0.14941406, + -0.27734375, + -0.004425049, + -0.012207031, + 0.029052734, + 0.024658203, + 0.06347656, + -0.083984375, + -0.1640625, + -0.103027344, + 0.13085938, + 0.007293701, + -0.007171631, + 0.068359375, + -0.17675781, + -0.09082031, + 0.08984375, + -0.049560547, + 0.09472656, + -0.018798828, + -0.009216309, + 0.037841797, + -0.05102539, + -0.006134033, + -0.09082031, + 0.057617188, + 0.08203125, + -0.034179688, + 0.036621094, + -0.13574219, + -0.052001953, + -0.23730469, + -0.6640625, + -0.05419922, + -0.06542969, + 0.063964844, + 0.06347656, + -0.03515625, + -0.118652344, + 0.12158203, + 0.35351562, + 0.033447266, + 0.15917969, + 0.08251953, + 0.11425781, + -0.10205078, + -0.16015625, + -0.19824219, + 0.05102539, + 0.013427734, + -0.040527344, + 0.040771484, + 0.047607422, + -0.11621094, + -0.14746094, + -0.018310547, + -0.044433594, + 0.022705078, + 0.038085938, + 0.115722656, + -0.18457031, + 0.114746094, + -0.20996094, + 0.043701172, + -0.041992188, + -0.14648438, + -0.06298828, + -0.17871094, + -0.22363281, + 0.0115356445, + -0.039794922, + 0.052978516, + -0.020996094, + -0.11767578, + 0.13671875, + 0.0069885254, + 0.19921875, + -0.21386719, + -0.034423828, + 0.033935547, + -0.068847656, + 0.08154297, + -0.0390625, + 0.1875, + -0.140625, + 0.045410156, + -0.14746094, + -0.068847656, + 0.0013046265, + 0.026000977, + -0.018920898, + 0.16308594, + 0.08642578, + 0.1328125, + -0.08496094, + 0.0859375, + 0.17773438, + 0.040527344, + 0.047851562, + -0.095703125, + 0.04711914, + 0.040527344, + 0.050048828, + 0.036376953, + 0.06982422, + 0.06982422, + 0.026611328, + -0.13183594, + 0.020996094, + 0.05102539, + -0.107910156, + -0.078125, + -0.11767578, + -0.023925781, + -0.49414062, + -0.10107422, + 0.119140625, + -0.24804688, + 0.29882812, + 0.14746094, + -0.14550781, + 0.115722656, + 0.12890625, + 0.061035156, + -0.057861328, + 0.052246094, + -0.05029297, + 0.021484375, + 0.11669922, + -0.008666992, + 0.025024414, + 0.01574707, + 0.07714844, + -0.10498047, + 0.13183594, + 0.015258789, + 0.021240234, + 0.03881836, + 0.014099121, + 0.0055236816, + -0.099121094, + 0.050048828, + 0.021728516, + 0.012939453, + -0.038085938, + -0.07861328, + -0.041259766, + 0.029541016, + 0.11035156, + -0.123046875, + 0.028564453, + -0.05078125, + 0.021362305, + 0.265625, + 0.044433594, + 0.09033203, + 0.032470703, + -0.048583984, + -0.01977539, + -0.0053100586, + 0.13183594, + 0.032226562, + -0.123535156, + -0.044189453, + -0.076660156, + 0.0032196045, + 0.0009384155, + 0.30273438, + -0.019042969, + -0.11279297, + 0.091796875, + 0.032958984, + 0.014343262, + 0.05517578, + 0.106933594, + -0.020141602, + -0.13574219, + 0.036132812, + -0.057861328, + 0.036376953, + -0.14941406, + 0.06225586, + -0.11621094, + -0.09033203, + 0.10986328, + -0.016357422, + -0.07421875, + -0.08544922, + -0.16503906, + 0.009643555, + -0.064941406, + -0.018188477, + -0.020019531, + 0.12060547, + -0.0011749268, + -0.06347656, + 0.12695312, + 0.10546875, + -0.048828125, + 0.09277344, + 0.064453125, + -0.057373047, + 0.23730469, + -0.0010070801, + -0.048095703, + 0.05126953, + 0.20605469, + -0.008728027, + -0.06933594, + -0.004425049, + -0.014038086, + 0.13964844, + -0.06689453, + 0.13671875, + 0.067871094, + -0.0063171387, + 0.044921875, + -0.123535156, + -0.05053711, + 0.2109375, + -0.19140625, + 0.07861328, + -0.053710938, + 0.22558594, + 0.08544922, + 0.109375, + -0.15136719, + -0.002166748, + 0.040771484, + -0.13378906, + -0.012573242, + 0.12792969, + -0.050048828, + 0.04638672, + 0.26367188, + 0.14453125, + -0.09277344, + -0.08105469, + 0.014770508, + 0.012756348, + 0.0067749023, + 0.053466797, + -0.015197754, + 0.02331543, + 0.07128906, + -0.18164062, + 0.07128906, + 0.027832031, + -0.0039978027, + 0.14746094, + -0.1015625, + 0.11279297, + 0.05078125, + 0.018310547, + -0.047607422, + 0.0006980896, + -0.0119018555, + -0.09765625, + 0.1171875, + -0.4140625, + 0.020263672, + 0.23144531, + 0.0072631836, + -0.140625, + 0.12890625, + -0.016235352, + -0.10595703, + 0.107910156, + -0.03149414, + -0.13085938, + -0.040771484, + -0.0072021484, + 0.123535156, + -1.1171875, + 0.08984375, + 0.009338379, + -0.018554688, + -0.016113281, + 0.09667969, + -0.023071289, + -0.01171875, + 0.041015625, + -0.10107422, + 0.052246094, + -0.076171875, + -0.021484375, + -0.12207031, + 0.15136719, + -0.21972656, + -0.07373047, + -0.033691406, + -0.06201172, + 0.071777344, + 0.12890625, + -0.099609375, + 0.021850586, + 0.17578125, + -0.048828125, + -0.08984375, + -0.032470703, + 0.12695312, + -0.107421875, + 0.07128906, + 0.24316406, + -0.048339844, + 0.02709961, + -0.07128906, + -0.1484375, + 0.0703125, + -0.09326172, + -0.11376953, + -0.09375, + -0.01953125, + 0.05908203, + 0.076660156, + -0.19628906, + -0.056640625, + -0.07324219, + -0.025878906, + 0.017822266, + 0.06591797, + 0.095214844, + -0.064941406, + -0.3515625, + -0.15625, + -0.08691406, + 0.06347656, + -0.0007171631, + 0.15820312, + -0.47460938, + 0.091796875, + 0.00030136108, + -0.05908203, + 0.21972656, + 0.05834961, + -0.0075683594, + 0.111816406, + 0.096191406, + -0.0076904297, + 0.16894531, + -0.24804688, + 0.08544922, + 0.28710938, + -0.030273438, + 0.091796875, + -0.04638672, + 0.15234375, + -0.032470703, + 0.30859375, + 0.06591797, + -0.017944336, + 0.08984375, + 0.01940918, + -0.017822266, + 0.0013885498, + -0.06347656, + -0.063964844, + -0.12890625, + 0.023071289, + 0.10205078, + -0.11816406, + -0.053466797, + 0.03149414, + 0.0703125, + -0.055664062, + -0.020629883, + -0.01953125, + -0.083496094, + -0.096191406, + -0.05493164, + 0.059326172, + 0.078125, + 0.03881836, + -0.10253906, + -0.041503906, + 0.032958984, + 0.01928711, + 0.10498047, + 0.068359375, + 0.011413574, + 0.03100586, + 0.04736328, + -0.06933594, + 0.013061523, + 0.056152344, + -0.07421875, + -0.043945312, + -0.024658203, + -0.030517578, + 0.18164062, + -0.103027344, + -0.15136719, + 0.041503906, + -0.15429688, + -0.023071289, + -0.068847656, + -0.032958984, + -0.087402344, + 0.013366699, + 0.020751953, + 0.012329102, + 0.15136719, + 0.10498047, + -0.119140625, + 0.01550293, + -0.047851562, + -0.032958984, + -0.00970459, + -0.11621094, + -0.03173828, + 0.13671875, + 0.075683594, + 0.14941406, + 0.017333984, + 0.030517578, + -0.09033203, + -0.09472656, + -0.05053711, + 0.027832031, + -0.23632812, + -0.16796875, + 0.14648438, + 0.17675781, + 0.13671875, + -0.060302734, + 0.0018692017, + -0.0022125244, + 0.04321289, + 0.17285156, + 0.076171875, + -0.0026550293, + -0.033203125, + 0.17285156, + 0.09082031, + 0.0546875, + -0.008178711, + -0.18164062, + -0.01940918, + -0.20019531, + -0.008361816, + 0.013000488, + -0.08251953, + 0.029296875, + 0.033447266, + -0.10595703, + -0.096191406, + 0.02331543, + 0.055664062, + 0.091308594, + -0.12695312, + -0.12890625, + -0.13769531, + 0.13085938, + -0.09277344, + 0.013671875, + -0.0011062622, + 0.017211914, + 0.4375, + -0.004425049, + 0.421875, + 0.022460938, + -0.053955078, + -0.0546875, + -0.07080078, + -0.00075912476, + 0.050048828, + 0.7578125, + -0.057128906, + 0.013793945, + -0.12988281, + -0.11621094, + 0.032714844, + 0.053955078, + -0.04345703, + -0.11669922, + 0.49804688, + 0.026977539, + 0.0038452148, + -0.0703125, + 0.037841797, + 0.026733398, + 0.055419922, + 0.0043640137, + 0.039794922, + -0.1015625, + 0.056640625, + 0.04345703, + 0.012390137, + 0.034179688, + -0.016601562, + 0.21191406, + 0.064453125, + -0.025878906, + -0.10546875, + -0.057617188, + 0.0009689331, + 0.12451172, + -0.14160156, + 0.07128906, + 0.012268066, + 0.05810547, + -0.045410156, + 0.050048828, + -0.03491211, + 0.13867188, + 0.03955078, + -0.068359375, + -0.114746094, + 0.017211914, + 0.026123047, + -0.04663086, + 0.012023926, + -0.15917969, + -0.06591797, + 0.08886719, + -0.088378906, + -0.040771484, + -0.08251953, + 0.015197754, + 0.034179688, + -0.16796875, + 0.06201172, + -0.24511719, + -0.12597656, + 0.20996094, + -0.17285156, + -0.06347656, + 0.17871094, + -0.110839844, + -0.022583008, + 0.22460938, + -0.07324219, + 0.041748047, + 0.3984375, + -0.079589844, + -0.049560547, + -0.026489258, + 0.055664062, + 0.15429688, + 0.19628906, + 0.111328125, + 0.0058898926, + 0.10546875, + -0.011474609, + 0.044921875, + 0.03149414, + -0.10058594, + 0.09667969, + -0.032714844, + -0.030151367, + 0.111816406, + 0.10888672, + 0.13769531, + 0.029052734, + -0.071777344, + 0.1640625, + 0.083984375, + -0.021240234, + 0.037841797, + -0.08886719, + 0.15917969, + -0.3984375, + -0.06982422, + -0.018066406, + -0.06591797, + 0.010131836, + -0.021606445, + 0.0138549805, + 0.13476562, + -0.12695312, + -0.024047852, + 0.049072266, + -0.07324219, + 0.06591797, + 0.44726562, + 0.10839844, + 0.011047363, + -0.103027344, + -0.011291504, + 0.1328125, + -0.008972168, + -0.064941406, + -0.12695312, + 0.03881836, + -0.056640625, + -0.08496094, + 0.037597656, + -0.068359375, + 0.008972168, + -0.024536133, + 0.013000488, + -0.17675781, + -0.0040283203, + 0.053222656, + -0.15429688, + 0.05126953, + 0.052734375, + 0.053710938, + -0.043945312, + -0.34570312, + -0.11328125, + -0.08496094, + 0.21582031, + -0.07128906, + 0.055908203, + 0.024291992, + -0.06738281, + 0.18164062, + -0.15820312, + -0.100097656, + -0.032226562, + 0.05053711, + -0.029296875, + 0.07714844, + 0.024902344, + -0.08544922, + -0.104003906, + -0.0027923584, + -0.071777344, + -0.0012283325, + -0.076171875, + -0.004760742, + 0.032958984, + 0.41796875, + 0.061767578, + -0.011474609, + 0.0024108887, + 0.20507812, + -0.053222656, + -0.08496094, + 0.095703125, + -0.002090454, + -0.063964844, + -0.029174805, + 0.12988281, + -0.003616333, + 0.021118164, + 0.08154297, + 0.092285156, + 0.080566406, + 0.12695312, + -0.025756836, + 0.04321289, + -0.10058594, + -0.076660156, + 0.11035156, + -0.012817383, + -0.103515625, + 0.057128906, + 0.15234375, + -0.17285156, + -0.16699219, + 0.032714844, + 0.083984375, + -0.2578125, + -0.008300781, + 0.021850586, + 0.091796875, + 0.009277344, + 0.08300781, + 0.15722656, + -0.06542969, + 0.013000488, + -0.23632812, + -0.119628906, + -0.018920898, + -0.119628906, + 0.07763672, + 0.12890625, + -0.03491211, + -0.08691406, + 0.067871094, + 0.23046875, + 0.07763672, + 0.23632812, + -0.052246094, + -0.08105469, + -0.06347656, + 0.04663086, + 0.028076172, + 0.006134033, + 0.022949219, + -0.125, + 0.0067443848, + 0.10107422, + 0.28515625, + 0.078125, + -0.15625, + -0.107910156, + 0.014770508, + -0.015625, + 0.07080078, + 0.39648438, + -0.06591797, + 0.057373047, + 0.11767578, + -0.0017242432, + -0.05834961, + -0.021484375, + -0.140625, + -0.15917969, + 0.02368164, + -0.099121094, + -0.10546875, + -0.011779785, + 0.00970459, + 0.0099487305, + 0.26171875, + 0.032958984, + 0.018432617, + -0.12207031, + -0.029907227, + 0.110839844, + 0.08935547, + -0.0013580322, + 0.08544922, + 0.07324219, + -0.06933594, + 0.09375, + 0.12597656, + 0.18359375, + 0.033935547, + 0.033447266, + -0.029174805, + 0.13574219, + -0.04272461, + 0.042236328, + -0.049560547, + 0.068847656, + -0.067871094, + -0.06738281, + -0.10253906, + 0.12011719, + -0.061279297, + -0.08544922, + -0.07373047, + -0.10546875, + 0.027954102, + -0.17578125, + 0.012268066, + 0.11376953, + -0.36132812, + 0.08154297, + -0.20605469, + 0.076660156, + -0.012756348, + -0.067871094, + -0.040283203, + 0.04296875, + 0.06542969, + 0.15722656, + -0.115234375, + -0.14648438, + 0.04638672, + -0.2265625, + -0.004760742, + -0.022705078, + -0.12695312, + 0.13574219, + -0.007873535, + -0.026733398, + -0.18359375, + 0.10888672, + -0.084472656, + -0.08203125, + -0.008666992, + 0.07910156, + 0.17578125, + -0.08691406, + -0.049560547, + 0.02734375, + -0.036132812, + -0.0625, + 0.1640625, + -0.03540039, + 0.017333984, + -0.08105469, + -0.05419922, + -0.026611328, + 0.0011138916, + 0.09863281, + -0.052246094, + 0.049804688, + 0.16699219, + -0.075683594, + -0.09716797, + -0.04663086, + -0.0012054443, + -0.030395508, + 0.15429688, + 0.076660156, + -0.46875, + -0.04663086, + -0.06689453, + 0.05517578, + -0.0546875, + 0.10107422, + -0.06298828, + 0.16503906, + 0.07324219, + 0.08300781, + 0.09082031, + 0.05444336, + 0.12109375, + -0.060058594, + -0.1328125, + -0.0019836426, + 0.18554688, + -0.09277344, + 0.019165039, + -0.051513672, + 0.080078125, + -0.071777344, + -0.06738281, + 0.118652344, + 0.028442383, + 0.084472656, + 0.10107422, + -0.009155273, + 0.07910156, + 0.052246094, + -0.11279297, + -0.024047852, + -0.034423828, + -0.00982666, + 0.068359375, + -0.10888672, + -0.12597656, + -0.0859375, + 0.057373047, + 0.07861328, + -0.02734375, + -0.10449219, + -0.03515625, + 0.020263672, + -0.06982422, + 0.060546875, + -0.045898438, + -0.019042969, + -0.103515625, + -0.010192871, + -0.07373047, + -0.018188477, + -0.08544922, + -0.012329102, + 0.0017776489, + -0.4296875, + 0.07373047, + -0.00970459, + 0.017822266, + -0.0062561035, + 0.08154297, + -0.011657715, + 0.001449585, + -0.18945312, + 0.030639648, + 0.25, + -0.008117676, + 0.05102539, + -0.048339844, + -0.043701172, + 0.122558594, + 0.030883789, + -0.17089844, + 0.12695312, + -0.07714844, + -0.25976562, + 0.032714844, + -0.08642578, + -0.033691406, + -0.015991211, + 0.025878906, + -0.052001953, + -0.076171875, + -0.10888672, + 0.13476562, + 0.033935547, + 0.028808594, + 0.10888672, + -0.05859375, + 0.03491211, + -0.026123047, + -0.008239746, + -0.036865234, + 0.115234375, + 0.030151367, + 0.048095703, + -0.15722656, + -0.0859375, + -0.060546875, + 0.05053711, + -0.118652344, + -0.013427734, + 0.013122559, + -0.037109375, + -0.0011367798, + -0.106933594, + -0.067871094, + -0.104003906, + 0.057861328, + 0.05810547, + 0.10498047, + 0.115722656, + -0.19433594, + 0.115722656, + 0.067871094, + 0.056640625, + -0.060302734, + -0.030883789, + -0.09326172, + 0.1484375, + 0.100097656, + 0.107910156, + 0.067871094, + 0.12011719, + -0.021362305, + 0.067871094, + -0.12988281, + -0.028808594, + 0.12988281, + -0.068359375, + -0.040527344, + -0.040527344, + -0.01928711, + -0.13183594, + -0.033447266, + 0.060791016, + -0.057373047, + -0.087402344, + -0.044677734, + -0.018676758, + 0.052734375, + 0.11669922, + -0.004272461, + 0.14160156, + 0.02734375, + -0.087890625, + 0.09765625, + -0.026245117, + 0.06201172, + 0.08496094, + 0.08251953, + -0.045166016, + 0.25976562, + 0.18554688, + -0.071777344, + -0.02709961, + 0.11767578, + 0.20703125, + -0.03173828, + 0.24316406, + -0.10449219, + -0.10888672, + 0.25585938, + 0.079589844, + 0.08300781, + 0.10595703, + -0.103515625, + -0.095214844, + -0.021118164, + 0.08105469, + 0.068359375, + -0.020751953, + 0.011047363, + -0.66796875, + -0.07763672, + -0.13378906, + 0.038085938, + -0.10498047, + 0.13769531, + 0.095214844, + 0.111328125, + 0.0234375, + 0.12695312, + -0.04736328, + 0.068847656, + -0.12207031, + -0.0008583069, + 0.0126953125, + 0.21386719, + -0.030517578, + 0.06298828, + 0.140625, + -0.056640625, + -0.265625, + -0.05834961, + -0.055908203, + 0.011291504, + -0.02758789, + -0.05810547, + 0.033935547, + 0.060546875, + -0.24609375, + 0.044921875, + 0.0063476562, + 0.14160156, + -0.39257812, + 0.051513672, + -0.06689453, + 0.009338379, + 0.019165039, + -0.045410156, + -0.2578125, + -0.2578125, + 0.03564453, + -0.08496094, + -0.17480469, + 0.056640625, + 0.048828125, + -0.08642578, + 0.08691406, + -0.06640625, + 0.13476562, + 0.037109375, + -0.07910156, + 0.026245117, + 2.203125, + -0.024291992, + -0.13476562, + 0.035888672, + 0.063964844, + -0.11425781, + 0.059326172, + 0.15136719, + 0.010986328, + -0.052001953, + 0.05102539, + -0.00012588501, + -0.042236328, + 0.18457031, + -0.043701172, + 0.14160156, + 0.119140625, + 0.041748047, + -0.059570312, + 0.44921875, + -0.09423828, + 0.078125, + -0.15722656, + 0.14257812, + -0.16894531, + -0.07714844, + 0.18847656, + 0.057373047, + -0.16894531, + -0.068359375, + 0.027954102, + -0.072265625, + 0.033691406, + -0.115722656, + -0.018798828, + 0.018188477, + 0.00050735474, + 0.10498047, + 0.014892578, + -0.046875, + 0.030639648, + -0.087402344, + -0.03564453, + -0.071777344, + -0.091796875, + 0.08544922, + 0.05053711, + -0.036621094, + -0.009216309, + -0.036132812, + -0.057373047, + 0.19042969, + -0.14160156, + 0.16992188, + 0.33007812, + -0.053222656, + 0.06982422, + 0.025146484, + -0.17773438, + -0.017700195, + -0.07324219, + -0.04345703, + 0.061523438, + 0.04736328, + 0.021606445, + 0.18554688, + -0.012451172, + -0.099609375, + 0.12988281, + -0.16894531, + -0.1484375, + 0.084472656, + 0.20605469, + -0.15039062, + -0.078125, + -0.02319336, + -0.010620117, + -0.016967773, + -0.016845703, + 0.11035156, + 0.02734375, + 0.66015625, + 0.1875, + 0.38867188, + 0.25390625, + 0.10449219, + 0.3671875, + 0.018920898, + -0.111816406, + 0.095214844, + -0.0038757324, + -0.07421875, + 0.0134887695, + 0.42382812, + 0.04321289, + 0.12060547, + 0.43359375, + 0.07373047, + -0.061279297, + 0.17089844, + -0.21875, + -0.022949219, + 0.0390625, + -0.25195312, + 0.044677734, + -0.109375, + 0.123046875, + 0.1640625, + -0.33398438, + 0.09277344, + -0.10595703, + -0.0075683594, + -0.19433594, + 0.31640625, + 0.052001953, + 0.16796875, + 0.040771484, + -0.01928711, + 0.14550781, + 0.096191406, + 0.035888672, + 0.03540039, + 0.021484375, + -0.011657715, + 0.009338379, + 0.110839844, + -0.12060547, + -0.087402344, + 0.057373047, + 0.08984375, + -0.057373047, + -0.12109375, + -0.06298828, + 0.21484375, + 0.13378906, + -0.26953125, + -0.13964844, + -0.037597656, + 0.04248047, + -0.022827148, + 0.099609375, + -0.071777344, + 0.079589844, + 0.119140625, + -0.3671875, + 0.033447266, + -0.017822266, + -0.04272461, + 0.012390137, + -0.08105469, + 0.09326172, + 0.037353516, + -0.028808594, + -0.040039062, + -0.0038452148, + 0.021484375, + 0.04345703, + 0.3359375, + -0.10888672, + 0.084472656, + 0.025390625, + -0.05810547, + 0.040039062, + 0.103027344, + -0.052490234, + -0.0051879883, + -0.34179688, + -0.15527344, + 0.11767578, + -0.004272461, + -0.17675781, + -0.21191406, + 0.045410156, + 0.051513672, + 0.072265625, + -0.036376953, + 0.27734375, + 0.012390137, + -0.20898438, + 0.009399414, + 0.029663086, + 0.04736328, + -0.064941406, + 0.064941406, + -0.056884766, + -0.04736328, + -0.03125, + 0.09814453, + 0.18066406, + -0.06591797, + -0.111328125, + 0.07128906, + 0.11767578, + -0.010192871, + 0.008300781, + -0.15625, + -0.00793457, + 0.099121094, + 0.040283203, + -0.048339844, + 0.033203125, + -0.08886719, + -0.04345703, + -0.055908203, + -0.063964844, + -0.16992188, + 0.049804688, + -0.039794922, + 0.02746582, + 0.04345703, + -0.0546875, + -0.15722656, + 0.11328125, + 0.01550293, + -0.028076172, + 0.05493164, + -0.05102539, + 0.01965332, + -0.10888672, + 0.17773438, + -0.15039062, + 0.020629883, + 0.068847656, + 0.09667969, + 0.17578125, + 0.030029297, + 0.0073242188, + 0.0546875, + 0.068847656, + 0.07470703, + 0.023803711, + -0.0053100586, + 0.022827148, + -0.12402344, + 0.104003906, + -0.014282227, + 0.008972168, + 0.07763672, + 0.10058594, + -0.080566406, + -0.0625, + 0.12402344, + -0.123046875, + -0.03466797, + -0.016357422, + 0.045410156, + -0.06689453, + -0.03564453, + -0.13867188, + 0.40429688, + 0.15039062, + 0.15039062, + -0.04345703, + 0.014221191, + 0.13964844, + 0.111328125, + 0.08935547, + 0.099121094, + -0.057128906, + 0.06982422, + 0.017822266, + -0.022338867, + -0.12988281, + -0.11230469, + -0.018310547, + 0.07421875, + -0.042236328, + -0.037841797, + 0.015625, + -0.057128906, + -0.067871094, + -0.06738281, + 0.061279297, + -0.15234375, + 0.140625, + -0.07324219, + -0.07128906, + -0.015258789, + 0.14550781, + -0.24511719, + -0.05078125, + -0.022460938, + -0.14648438, + 0.06640625, + 0.016357422, + 0.060546875, + -0.016601562, + -0.0047912598, + 0.022705078, + -0.03173828, + 0.10595703, + -0.14941406, + 0.017456055, + -0.080078125, + -0.083984375, + -0.10595703, + 0.020751953, + 0.048095703, + -0.017211914, + 0.0067749023, + 0.0040283203, + -0.025390625, + -0.13476562, + -0.087890625, + 0.0859375, + 0.017944336, + 0.049804688, + -0.115234375, + 0.15429688, + 0.050048828, + -0.09375, + -0.08544922, + -0.08935547, + 0.010375977, + 0.10644531, + -0.20507812, + -0.02734375, + 0.4375, + -0.110839844, + -0.03466797, + -0.078125, + 0.06542969, + 0.11279297, + 0.1484375, + -0.045898438, + -0.013061523, + 0.024169922, + 0.008666992, + 0.080566406, + 0.047851562, + -0.0022583008, + 0.15429688, + -0.026611328, + 0.08691406, + 0.115722656, + 0.1640625, + -0.068847656, + 0.05126953, + -0.040771484, + -0.022949219, + -0.10058594, + -0.296875, + -0.08300781, + -0.07080078, + -0.24707031, + -0.12207031, + -0.057128906, + 0.055908203, + -0.046142578, + 0.059570312, + -0.12988281, + -0.13574219, + -0.11621094, + -0.063964844, + -0.06640625, + -0.11767578, + -0.05834961, + 0.09863281, + -0.014831543, + -0.016235352, + -0.19042969, + 0.0095825195, + -0.008666992, + 0.03881836, + -0.011474609, + -0.049560547, + -0.06982422, + 0.091796875, + -0.14160156, + 0.040283203, + -0.24121094, + 0.056152344, + -0.06542969, + 0.125, + 0.068359375, + 0.036132812, + -0.07373047, + 0.099121094, + -0.011657715, + -0.07519531, + 0.19921875, + -0.06347656, + -0.0061950684, + -0.0234375, + 0.041503906, + -0.078125, + -0.09277344, + 0.19921875, + -0.23535156, + -0.09863281, + 0.0138549805, + -0.052246094, + 0.13671875, + -0.10839844, + 0.080566406, + 0.3984375, + 0.09375, + -0.029052734, + -0.014892578, + 0.16601562, + 0.060791016, + -0.022094727, + -0.38476562, + -0.028442383, + 0.029052734, + 0.09863281, + -0.115234375, + 0.0015182495, + 0.0016937256, + -0.032958984, + -0.04638672, + 0.11669922, + -0.103515625, + 0.051513672, + 0.020629883, + -0.51953125, + 0.046142578, + -0.027832031, + 0.0703125, + -0.05517578, + -0.14941406, + -0.10986328, + 0.055908203, + -0.12890625, + -0.68359375, + 0.052490234, + -0.16503906, + -0.006225586, + 0.00061798096, + -0.023925781, + 0.012023926, + -0.07714844, + 0.118652344, + -0.049560547, + -0.10839844, + 0.13085938, + -0.2578125, + -0.033935547, + -0.20214844, + 0.20996094, + 0.16699219, + -0.08105469, + -0.035888672, + -0.10498047, + 0.031982422, + -0.0037384033, + -0.032958984, + 0.052734375, + 0.13574219, + -0.068847656, + 0.096191406, + 0.03857422, + -0.009460449, + 0.09423828, + 0.07421875, + 0.004760742, + -0.15332031, + 0.640625, + -0.030761719, + 0.076171875, + 0.08105469, + -0.03491211, + 0.11816406, + 0.33984375, + -0.06542969, + 0.122558594, + 0.087402344, + 0.13769531, + -0.10449219, + 0.03564453, + 0.007293701, + -0.016479492, + 0.18945312, + -0.20605469, + 0.022705078, + 0.032714844, + -0.0859375, + -0.13085938, + -0.007507324, + -0.08886719, + -0.1328125, + 0.07470703, + -0.010803223, + -0.091796875, + -0.0064697266, + 0.075683594, + 0.006500244, + 0.12402344, + 0.028198242, + 0.06542969, + 0.08300781, + -0.17871094, + -0.099121094, + -0.06347656, + -0.051513672, + -0.018432617, + 12.75, + 0.09082031, + 0.015380859, + -0.07714844, + -0.40039062, + 0.18261719, + -0.12792969, + 0.13574219, + 0.13378906, + -0.0859375, + -0.11279297, + -0.0067749023, + -0.021240234, + -0.123535156, + 0.021728516, + 0.044433594, + -0.00793457, + 0.048583984, + -0.053710938, + 0.07373047, + -0.27734375, + -0.024658203, + 0.15332031, + -0.09277344, + 0.095214844, + 0.02734375, + -0.0107421875, + -0.18652344, + 0.09863281, + 0.15234375, + -0.06738281, + -0.04711914, + 0.009155273, + 0.09082031, + 0.06982422, + -0.023803711, + 0.18261719, + 0.006072998, + 0.35742188, + -0.007507324, + -0.00046539307, + 0.31445312, + -0.05078125, + 0.13769531, + -0.0065612793, + -0.14453125, + 0.050048828, + -0.057617188, + -0.045898438, + 0.023925781, + -0.033447266, + -0.06689453, + 0.044677734, + 0.16308594, + -0.14160156, + 0.084472656, + -0.008483887, + 0.015380859, + 0.026855469, + -0.09033203, + 0.048828125, + 0.12011719, + -0.023071289, + -0.18652344, + -0.18847656, + 0.10205078, + -0.015563965, + 0.013793945, + 0.109375, + -0.104003906, + 0.050048828, + -0.096191406, + -0.038330078, + 0.12207031, + -0.08300781, + 0.049072266, + -0.022460938, + 0.07373047, + -0.10449219, + -0.10595703, + -0.13671875, + 0.012390137, + 0.05053711, + 0.23730469, + -0.19335938, + 0.057617188, + -0.0070495605, + -0.035888672, + 0.041015625, + 0.15136719, + 0.026123047, + -0.03515625, + 0.51171875, + 0.010131836, + -0.016113281, + -0.22167969, + 0.026489258, + -0.08154297, + 0.09277344, + -0.328125, + -0.07910156, + 0.08642578, + 1.328125, + -0.12109375, + 0.009399414, + -0.04272461, + -0.015014648, + 0.091796875, + -0.0046081543, + 0.15820312, + 0.017578125, + 0.16503906, + -0.21679688, + -0.12451172, + 0.032958984, + 0.038330078, + 0.045410156, + 0.041259766, + 0.107910156, + 0.072265625, + 0.075683594, + 0.107421875, + 0.051513672, + 0.08935547, + -0.119140625, + 0.006591797, + 0.18457031, + 0.10058594, + 0.07128906, + -0.019042969, + 0.15039062, + -0.0037994385, + 0.048828125, + -0.0017166138, + 0.005432129, + -0.053710938, + 0.048339844, + -0.016357422, + 0.018798828, + -0.07470703, + 0.024536133, + 0.041259766, + 0.041259766, + 0.110839844, + -0.12158203, + -0.033691406, + -0.01550293, + 0.033203125, + 0.06542969, + 0.12060547, + 0.036376953 + ] +} \ No newline at end of file diff --git a/speakers/vivian.json b/speakers/vivian.json new file mode 100644 index 0000000..61d585b --- /dev/null +++ b/speakers/vivian.json @@ -0,0 +1,2055 @@ +{ + "name": "vivian", + "description": "female_adult", + "spk_id": 3065, + "spk_emb": [ + -0.091796875, + -0.13183594, + 0.06738281, + 0.13769531, + 0.010314941, + -0.010986328, + 0.09863281, + -3.5, + 0.083496094, + -0.13867188, + 0.028076172, + 0.15527344, + -0.07763672, + -0.030517578, + -0.0061035156, + -0.100097656, + -0.125, + -0.013305664, + -0.08691406, + -0.022949219, + -0.10986328, + 0.09716797, + 0.026367188, + -0.0032653809, + -0.06591797, + 0.055664062, + -0.083984375, + 0.13476562, + -0.030883789, + -0.0146484375, + -0.057128906, + -0.087402344, + -0.07470703, + -0.10888672, + -0.0234375, + -0.021362305, + -0.057373047, + -0.07373047, + 0.05029297, + -0.060302734, + 0.111816406, + -0.17480469, + -0.032714844, + -0.018554688, + 0.111816406, + 0.009887695, + -0.10546875, + 0.107910156, + -0.079589844, + -0.039794922, + 0.09863281, + -0.060302734, + -0.026611328, + -0.083984375, + 0.010498047, + 0.111328125, + 0.0034942627, + 0.05102539, + 0.03112793, + 0.09277344, + 0.0051879883, + -0.07080078, + 0.12695312, + 0.006164551, + -0.063964844, + 0.08691406, + -0.032226562, + -0.20117188, + 0.016601562, + 0.3046875, + -0.059814453, + 0.10839844, + -0.18164062, + -0.004119873, + 0.015991211, + -0.04296875, + -0.08984375, + -0.11669922, + -0.03930664, + -0.039794922, + 0.028442383, + -0.14648438, + 0.045898438, + 0.047607422, + 0.037353516, + 0.087890625, + 0.06933594, + 0.041748047, + -0.02722168, + 0.078125, + 0.036621094, + 0.072753906, + 0.07421875, + 0.036132812, + 0.23144531, + 0.044921875, + -0.05029297, + 0.0009613037, + 0.016357422, + 0.068847656, + -0.092285156, + -0.12890625, + 0.19042969, + -0.037109375, + -0.047851562, + 0.0032653809, + 0.056884766, + -0.06689453, + -0.10644531, + -0.06933594, + -0.034423828, + -0.008056641, + -0.0008239746, + -0.109375, + -0.12890625, + -0.00035476685, + 0.025390625, + -0.06591797, + -0.016479492, + 0.14257812, + 0.041992188, + 0.14257812, + 0.0019378662, + 0.29296875, + -0.0068359375, + -0.02734375, + -0.016479492, + 0.01586914, + 0.075683594, + 0.037597656, + 0.021362305, + 0.028198242, + -0.11376953, + -0.019042969, + 0.08105469, + 0.13671875, + -0.010437012, + 0.09814453, + -0.13574219, + -0.06689453, + -0.056152344, + 0.07421875, + 0.12011719, + 0.111328125, + -0.17871094, + 0.27929688, + 0.017211914, + 0.057128906, + -0.0013427734, + 0.09765625, + -0.052734375, + -0.07714844, + 0.359375, + 0.14941406, + -0.08886719, + -0.0107421875, + 0.25390625, + 0.22363281, + -0.059814453, + -0.18066406, + -0.028564453, + 0.006866455, + 0.010620117, + 0.036865234, + -0.125, + -0.021118164, + -3.484375, + -0.01965332, + -0.003967285, + 0.05126953, + -0.017211914, + 0.0057373047, + -0.096191406, + 0.052978516, + -0.17285156, + -0.049072266, + 0.015380859, + 0.041992188, + -0.12011719, + 0.110839844, + 0.111328125, + 0.01586914, + 0.025390625, + -0.061767578, + 0.06591797, + 0.011962891, + 0.021484375, + -0.011169434, + 0.03112793, + 0.029663086, + -0.025756836, + -0.045898438, + -0.031982422, + -0.021606445, + -0.03173828, + 0.0048828125, + 0.110839844, + 0.053466797, + -0.17480469, + 0.12597656, + 0.11425781, + 0.041259766, + -0.1171875, + -0.056396484, + -0.051757812, + -0.14257812, + -0.0067443848, + 0.072753906, + 0.1015625, + -0.55859375, + 0.047607422, + 0.18554688, + 0.072753906, + 0.1171875, + 0.12011719, + 0.08154297, + -0.057617188, + -0.030761719, + 0.037353516, + -0.067871094, + -0.02709961, + 0.030883789, + 0.017211914, + 0.037353516, + 0.010253906, + 0.040039062, + -0.056396484, + 0.07519531, + -0.021606445, + 0.049560547, + 0.0026397705, + -0.1484375, + 0.021118164, + 0.022583008, + -0.028076172, + -0.114746094, + -0.057373047, + -0.125, + -0.18847656, + -0.012634277, + -0.08642578, + 0.33398438, + 0.11816406, + 0.020385742, + -0.20996094, + -0.08203125, + 0.11816406, + 0.08544922, + 0.123535156, + -0.007171631, + 0.07470703, + -0.009033203, + -0.033935547, + 0.015563965, + -0.040771484, + 0.068847656, + 0.09326172, + -0.037353516, + 0.20019531, + 0.052490234, + 0.07373047, + 0.043701172, + 0.043701172, + -0.060058594, + -0.080566406, + 0.034423828, + 0.05126953, + -0.013671875, + 0.078125, + 0.0056762695, + 0.119140625, + -0.083984375, + 0.19042969, + 0.0068969727, + -0.15136719, + -0.1015625, + -0.084472656, + -0.006591797, + -0.050048828, + -0.060791016, + -0.12060547, + 0.021362305, + -0.12207031, + 0.038085938, + -0.12207031, + -0.20898438, + 0.22167969, + 0.034179688, + 0.006439209, + 0.15332031, + -0.19433594, + -0.00046730042, + 0.0134887695, + -0.092285156, + -0.16992188, + -0.00015640259, + -0.059814453, + -0.16015625, + 0.015563965, + -0.08154297, + 0.1328125, + 0.10205078, + -0.020751953, + 0.099609375, + -0.19140625, + -0.048828125, + 0.018310547, + 0.0037384033, + -0.025146484, + 0.20214844, + 0.021606445, + -0.06591797, + -0.05834961, + -0.0063476562, + -0.103515625, + 0.100097656, + -0.044677734, + 0.061523438, + 0.119628906, + 0.43945312, + -0.12402344, + 0.08154297, + -0.056640625, + 0.125, + -0.049316406, + -0.0028839111, + -0.03955078, + -0.03564453, + -0.10595703, + -0.24121094, + -0.076660156, + -0.17480469, + 0.12451172, + 0.03564453, + 0.035888672, + 0.0053710938, + 0.036132812, + -0.013549805, + -0.011047363, + 0.014770508, + -0.06933594, + -0.087402344, + 0.20605469, + 0.041992188, + -0.1796875, + 0.0234375, + 0.028808594, + -0.037353516, + 0.1484375, + -0.041503906, + 0.08203125, + 0.021484375, + 0.0031585693, + -0.030395508, + 0.30273438, + -0.10986328, + 0.029174805, + -0.15332031, + 0.052246094, + -0.16601562, + -0.100097656, + -0.078125, + 0.05419922, + -0.084472656, + 0.123046875, + -0.053466797, + -0.004180908, + -0.014587402, + 0.091308594, + 0.0703125, + 0.08300781, + 0.0048217773, + 0.018920898, + 0.26171875, + -0.021484375, + 0.007507324, + 0.04638672, + -0.034179688, + -0.004425049, + -0.014099121, + -0.07861328, + -0.07373047, + -0.008850098, + -0.13964844, + 0.06298828, + -0.039794922, + -0.2578125, + -0.048339844, + -0.018676758, + -0.06738281, + 0.08154297, + 0.029541016, + 0.017456055, + -0.006011963, + -0.125, + 0.05029297, + -0.042236328, + -0.011291504, + -0.037597656, + -0.017700195, + -0.03881836, + -0.08691406, + 0.10546875, + 0.13867188, + -0.013671875, + -0.012390137, + -0.14453125, + 0.07763672, + -0.032470703, + -0.12988281, + 0.15917969, + -0.07080078, + -0.15527344, + 0.021240234, + -0.05517578, + 0.05908203, + 0.02368164, + 0.09667969, + -0.13769531, + 0.1875, + 0.06225586, + 0.05883789, + 0.041503906, + -0.11425781, + 0.028442383, + 0.26757812, + -0.061279297, + 0.09277344, + -0.019897461, + -0.064941406, + -0.10253906, + -0.07128906, + -0.10546875, + 0.06982422, + -0.02355957, + 0.014709473, + 0.048583984, + -0.546875, + 0.026733398, + 0.024536133, + 0.03173828, + -0.008239746, + -0.07080078, + -0.0046691895, + 0.06640625, + 0.018188477, + -0.06542969, + 0.080078125, + 0.014465332, + 0.07421875, + -0.008422852, + -0.118652344, + 0.0079956055, + -0.03564453, + 0.0859375, + 0.03955078, + 0.014953613, + -0.11230469, + -0.00970459, + -0.04736328, + -0.06640625, + 0.17675781, + -0.075683594, + -0.079589844, + -0.041015625, + -0.15625, + 0.08886719, + -0.0859375, + -0.08544922, + -0.03930664, + -0.0234375, + -0.10253906, + -0.014343262, + -0.029907227, + 0.09082031, + -0.026245117, + 0.045166016, + -0.08691406, + -0.014099121, + -0.08203125, + 0.099121094, + -0.018066406, + -0.057128906, + 0.19042969, + -0.01928711, + -0.08154297, + 0.040771484, + 0.12792969, + 0.03125, + 0.07861328, + 0.33398438, + -0.07470703, + -0.05444336, + -0.009521484, + 0.026123047, + 0.020507812, + -0.008605957, + 0.040283203, + 0.08642578, + -0.44140625, + -0.047607422, + 0.064453125, + -0.100097656, + 0.03564453, + -0.15917969, + 0.06347656, + -0.048095703, + 0.002105713, + 0.061035156, + 0.06933594, + -0.024780273, + -0.052490234, + -0.10986328, + 0.055419922, + 0.036865234, + 0.119140625, + 0.08105469, + -0.020019531, + -0.0625, + -0.07470703, + -0.083496094, + 0.06542969, + 0.18652344, + 0.05053711, + 0.16308594, + -0.1171875, + 0.11669922, + -0.07128906, + 0.06640625, + -0.11669922, + 0.0034942627, + -0.06640625, + 0.029541016, + -0.004852295, + 0.06689453, + 0.13671875, + -0.07763672, + 0.048828125, + 0.0037231445, + -0.049804688, + 0.06542969, + -0.07470703, + -0.0031433105, + -0.05883789, + 0.0059814453, + -0.010986328, + 0.07128906, + -0.061767578, + 0.038330078, + 0.045654297, + 0.10253906, + -0.0037994385, + -0.16308594, + -0.008300781, + -0.0014877319, + -0.034423828, + 0.05419922, + 0.14257812, + 0.08300781, + -0.021240234, + -0.046142578, + -0.036621094, + 0.092285156, + -0.037109375, + -0.068359375, + 0.13085938, + -0.09472656, + -0.115722656, + 0.0056762695, + 0.032226562, + -0.021606445, + -0.07128906, + -0.15917969, + -0.14453125, + 0.09863281, + 0.012573242, + 0.05078125, + -0.05493164, + -0.08203125, + -0.14941406, + -0.052246094, + -0.015136719, + -0.032470703, + 0.04272461, + 0.0025634766, + -0.010864258, + -0.13769531, + 0.08203125, + 0.0064086914, + 0.040771484, + -0.018554688, + -0.0390625, + 0.025878906, + 0.11035156, + 0.10107422, + 0.026245117, + 0.011291504, + -0.06591797, + 0.10498047, + -0.076171875, + -0.03100586, + -0.05517578, + -0.04345703, + 0.080078125, + -0.014099121, + -0.045410156, + 0.03466797, + -0.103515625, + 0.17480469, + 0.12060547, + 0.064453125, + 0.0095825195, + -0.016113281, + -0.06738281, + -0.068847656, + -0.0859375, + 0.24121094, + 0.0032653809, + -0.05029297, + -0.1171875, + 0.027954102, + -0.14648438, + 0.055664062, + 0.03125, + -0.12597656, + -0.041015625, + 0.020629883, + -0.025268555, + 0.010864258, + -0.08544922, + -0.25390625, + -0.001373291, + -0.01977539, + 0.02331543, + 0.050048828, + -0.049804688, + 0.014465332, + -0.032226562, + 0.036621094, + -0.10644531, + -0.0024414062, + 0.09277344, + -0.016601562, + 0.0069885254, + -0.00970459, + 0.021728516, + 0.031982422, + -0.00390625, + 0.013977051, + 0.18457031, + 0.043701172, + -0.0061950684, + 0.008117676, + -0.05834961, + -0.0546875, + -0.05102539, + 0.026000977, + -0.06640625, + -0.34570312, + 0.05517578, + 0.15136719, + -0.13867188, + 0.06298828, + 0.016601562, + -0.044677734, + -0.07373047, + -0.0064086914, + -0.045898438, + 0.036132812, + -0.056396484, + -0.05517578, + -0.048828125, + 0.080566406, + -0.099609375, + 0.09326172, + -0.1484375, + -0.064941406, + -0.0107421875, + 0.19921875, + 0.080566406, + 0.020996094, + 0.15429688, + -0.040771484, + -0.043701172, + -0.048339844, + 0.08935547, + -0.12451172, + -0.14160156, + 0.048339844, + -0.095703125, + -0.008483887, + -0.10253906, + -0.14453125, + 0.030639648, + -0.01940918, + -0.076171875, + -0.01928711, + -0.13574219, + -0.07421875, + -0.007446289, + -0.052734375, + -0.047607422, + -0.099121094, + 0.036132812, + -0.06933594, + 0.15332031, + -0.043701172, + -0.018920898, + -0.10595703, + -0.08496094, + -0.00579834, + 0.009399414, + -0.018188477, + -0.025756836, + -0.14160156, + -0.00018119812, + -0.095703125, + 0.016235352, + 0.10888672, + 0.08886719, + -0.09814453, + 0.15039062, + 0.01977539, + 0.021362305, + 0.03491211, + -0.080566406, + 0.016113281, + 0.28125, + -0.080078125, + 0.02355957, + 0.010253906, + 0.17773438, + -0.08935547, + 0.039794922, + -0.048828125, + 0.07421875, + -0.007171631, + 0.05493164, + 0.05493164, + 0.06933594, + -0.03173828, + -0.05419922, + -0.052001953, + 0.029907227, + -0.0065612793, + -0.091308594, + -0.111328125, + 0.018310547, + -0.099609375, + 0.032470703, + -0.123535156, + -0.02722168, + -0.060302734, + 0.034179688, + -0.01953125, + 0.107421875, + 0.023071289, + -0.0009651184, + -0.16992188, + -0.0007286072, + -0.041015625, + 0.07519531, + 0.05126953, + -0.0013504028, + 0.0126953125, + -0.07373047, + 0.029052734, + 0.13964844, + 0.12402344, + 0.020385742, + -0.04272461, + -0.06689453, + 0.026245117, + 0.05444336, + -0.014099121, + -0.14160156, + 0.0011825562, + 0.02758789, + 0.12451172, + 0.05517578, + 0.024536133, + 0.030395508, + -0.09423828, + -0.038330078, + 0.09033203, + 0.030761719, + -0.028686523, + -0.057373047, + -0.16992188, + 0.125, + -0.0390625, + -0.104003906, + 0.06982422, + -0.17871094, + 0.0022735596, + 0.08251953, + 0.0059814453, + 0.076171875, + 0.04272461, + 0.014221191, + -0.048339844, + -0.012878418, + -0.16796875, + -0.047851562, + -0.059570312, + -0.08544922, + -0.048095703, + 0.118652344, + 0.08251953, + -0.16894531, + -0.06689453, + -0.10205078, + 0.052734375, + 0.03112793, + 0.051513672, + -0.084472656, + -0.021850586, + -0.1015625, + 0.091796875, + -0.022460938, + 0.06640625, + -0.1640625, + -0.12988281, + -0.23535156, + 0.076171875, + -0.17578125, + -0.0703125, + -0.026733398, + 0.030639648, + -0.0035858154, + -0.068847656, + 0.026367188, + 0.052978516, + 0.20019531, + -0.109375, + -0.024169922, + -0.026245117, + 0.057861328, + -0.09716797, + 0.07519531, + 0.032226562, + -0.024658203, + 0.026977539, + 0.16699219, + 0.57421875, + -0.010864258, + 0.04296875, + 0.022460938, + -0.07324219, + -0.0074768066, + 0.05883789, + 0.5859375, + -0.032714844, + 0.039794922, + -0.034179688, + -0.007019043, + -0.087402344, + 0.103027344, + -0.110839844, + 0.053710938, + 0.19824219, + -0.05810547, + -0.10058594, + -0.08691406, + -0.11279297, + 0.1484375, + 0.08203125, + 0.14160156, + 0.083496094, + -0.13183594, + 0.052246094, + -0.0625, + 0.051757812, + 0.15234375, + -0.12792969, + 0.08935547, + 0.08300781, + -0.06591797, + -0.07861328, + 0.04248047, + -0.038330078, + 0.15429688, + 0.007873535, + 0.09814453, + -0.080566406, + -0.11230469, + -0.00049591064, + 0.025390625, + 0.07470703, + 0.059570312, + 0.015625, + -0.12060547, + 0.0703125, + 0.053955078, + 0.019897461, + -0.107421875, + 0.024658203, + -0.1171875, + 0.050048828, + -0.08544922, + -0.049316406, + -0.0034332275, + -0.051757812, + 0.06982422, + -0.017944336, + -0.15039062, + -0.036865234, + -0.16894531, + -0.10986328, + -0.057617188, + -0.16992188, + -0.04345703, + 0.049560547, + -0.011169434, + -0.13378906, + 0.083984375, + -0.14160156, + 0.06298828, + -0.16601562, + -0.048828125, + -0.0058898926, + -0.06738281, + 0.16601562, + 0.096191406, + 0.044433594, + 0.029296875, + 0.06689453, + 0.08691406, + -0.11230469, + 0.022338867, + -0.15136719, + -0.075683594, + -0.10839844, + 0.021728516, + -0.049560547, + -0.018920898, + 0.11816406, + 0.076171875, + -0.20410156, + 0.013305664, + 0.072265625, + 0.140625, + -0.076660156, + -0.01184082, + 0.032470703, + 0.18164062, + -0.18554688, + -0.08300781, + -0.0859375, + -0.10546875, + 0.002105713, + -0.02734375, + 0.10595703, + -0.022216797, + -0.33398438, + -0.0010910034, + -0.004425049, + 0.375, + -0.095214844, + 0.5234375, + -0.009521484, + 0.03173828, + 0.083496094, + -0.025878906, + 0.032470703, + -0.07080078, + -0.053710938, + -0.13378906, + -0.006500244, + -0.08300781, + 0.010131836, + -0.056396484, + 0.02734375, + -0.072753906, + 0.02734375, + -0.004180908, + -0.114746094, + -0.080566406, + 0.053955078, + -0.10253906, + 0.030151367, + -0.060058594, + 0.107421875, + -0.044677734, + -0.2578125, + 0.0546875, + -0.16308594, + 0.009887695, + -0.0703125, + 0.16894531, + -0.008605957, + -0.13183594, + 0.07861328, + -0.10205078, + 0.036621094, + -0.052490234, + -0.037597656, + 0.0035095215, + -0.07861328, + 0.0031280518, + -0.02722168, + 0.12011719, + 0.05029297, + 0.059326172, + 0.08935547, + -0.096191406, + -0.0859375, + -0.020141602, + 0.3125, + 0.055908203, + -0.10546875, + -0.044189453, + 0.060058594, + -0.07324219, + -0.07373047, + 0.03881836, + 0.09472656, + -0.14257812, + -0.13671875, + -0.07128906, + -0.016967773, + 0.012878418, + 0.15332031, + -0.007537842, + 0.2109375, + 0.100097656, + 0.14453125, + -0.043945312, + -0.1484375, + 0.06347656, + 0.12158203, + -0.07519531, + -0.10595703, + 0.08496094, + -0.08886719, + 0.024169922, + -0.12597656, + 0.0018234253, + 0.035888672, + -0.024414062, + 0.00390625, + 0.023803711, + -0.140625, + 0.02758789, + 0.053955078, + 0.16699219, + -0.16210938, + 0.014892578, + -0.21875, + 0.13867188, + -0.13378906, + 0.095703125, + -0.13183594, + 0.17773438, + -0.07519531, + -0.051513672, + -0.01953125, + 0.10058594, + -0.020751953, + 0.14746094, + 0.0703125, + 0.027832031, + 0.045654297, + 0.026489258, + -0.040039062, + 0.045166016, + 0.048828125, + -0.08984375, + 0.13671875, + -0.056884766, + -0.28125, + 0.032226562, + 0.046875, + -0.07373047, + -0.03930664, + -0.064453125, + 0.31445312, + 0.58984375, + -0.08251953, + -0.068359375, + -0.0025177002, + 0.025512695, + 0.16210938, + 0.020996094, + 0.06640625, + -0.28125, + 0.02746582, + 0.032470703, + 0.0011749268, + 0.107910156, + -0.0390625, + -0.107421875, + -0.041259766, + 0.0042419434, + -0.036376953, + -0.08935547, + -0.15722656, + 0.03955078, + 0.021972656, + -0.052246094, + -0.16113281, + -0.15332031, + -0.118652344, + 0.021972656, + 0.23046875, + 0.118652344, + 0.061767578, + -0.029052734, + -0.014892578, + 0.041992188, + 0.13183594, + -0.0703125, + -0.051757812, + 0.15234375, + -0.05859375, + -0.07421875, + -0.08300781, + 0.18359375, + 0.036132812, + -0.06640625, + 0.0035705566, + 0.060791016, + 0.00077056885, + -0.07519531, + 0.123046875, + -0.21875, + -0.23242188, + -0.0071105957, + 0.05810547, + 0.009033203, + 0.103515625, + -0.15332031, + -0.11230469, + 0.009277344, + -0.08544922, + 0.09814453, + -0.04321289, + -0.18066406, + 0.05810547, + 0.26171875, + 0.055908203, + -0.012207031, + 0.06933594, + 0.0115356445, + -0.016723633, + 0.049560547, + -0.15332031, + 0.022216797, + 0.045166016, + -0.15234375, + 0.095214844, + 0.17480469, + -0.006866455, + 0.0058288574, + -0.109375, + -0.04272461, + -0.042236328, + -0.087402344, + 0.010375977, + -0.20703125, + -0.010131836, + -0.039794922, + 0.03857422, + 0.016357422, + 0.048583984, + -0.08154297, + 0.010681152, + -0.030395508, + 0.06640625, + -0.22558594, + 0.12792969, + -0.11669922, + -0.049316406, + -0.07519531, + -0.047851562, + 0.12060547, + -0.3203125, + -0.06347656, + 0.064453125, + -0.028808594, + -0.07080078, + 0.06933594, + -0.067871094, + 0.07910156, + -0.19042969, + 0.002319336, + 0.037841797, + 0.032958984, + 0.09082031, + 0.044433594, + -0.032226562, + -0.0027008057, + 0.03857422, + -0.13476562, + 0.09423828, + 0.13769531, + -0.07128906, + 0.087890625, + -0.13867188, + 0.00022506714, + -0.08935547, + 0.095703125, + 0.05834961, + 0.046875, + 0.040039062, + 0.05444336, + -0.13476562, + 0.0051574707, + -0.021850586, + -0.083984375, + -0.09082031, + 0.005340576, + 0.060302734, + -0.21679688, + 0.03955078, + -0.00091552734, + 0.0018310547, + -0.063964844, + -0.115722656, + -0.22167969, + 0.0390625, + 0.10888672, + 0.072753906, + 0.0000667572, + -0.103027344, + -0.18164062, + 0.43164062, + -0.021118164, + -0.0008468628, + 0.068847656, + -0.13574219, + -0.42578125, + -0.083984375, + 0.010925293, + -0.03881836, + 0.19824219, + 0.104003906, + -0.0018157959, + 0.032226562, + 0.033203125, + -0.033691406, + 0.16015625, + 0.14453125, + 0.118652344, + -0.076171875, + 0.052978516, + -0.008056641, + 0.015258789, + -0.03564453, + 0.09863281, + 0.0033111572, + -0.095214844, + -0.003753662, + -0.061279297, + 0.061767578, + -0.030029297, + 0.09423828, + -0.05419922, + -0.109375, + -0.09082031, + 0.16210938, + 0.048339844, + 0.09472656, + -0.13378906, + 0.078125, + 0.08984375, + -0.12158203, + -0.0625, + 0.0056152344, + 0.0032806396, + -0.055908203, + 0.07910156, + -0.0703125, + -0.08886719, + -0.0859375, + 0.040283203, + -0.0146484375, + -0.099121094, + -0.16210938, + -0.07324219, + -0.12402344, + -0.060302734, + -0.03100586, + -0.1015625, + 0.083496094, + 0.046142578, + 0.06542969, + 0.041259766, + -0.083984375, + 0.12988281, + 0.037841797, + 0.17675781, + -0.03100586, + 0.13574219, + -0.21191406, + 0.010375977, + 0.27929688, + 0.011779785, + -0.06982422, + 0.13574219, + 0.076660156, + -0.06201172, + -0.035888672, + -0.020507812, + -0.012939453, + -0.060058594, + 0.0095825195, + -0.05444336, + -0.21875, + -0.04711914, + 0.049560547, + 0.016967773, + 0.091308594, + -0.0011672974, + 0.026123047, + 0.017944336, + -0.03100586, + -0.20507812, + -0.03540039, + 0.048828125, + 0.0031738281, + 0.0050964355, + -0.111328125, + 0.026733398, + 0.06933594, + -0.032714844, + 0.04272461, + -0.07861328, + 0.072265625, + 0.109375, + 0.026489258, + -0.18652344, + 0.10058594, + 0.1015625, + 0.028686523, + 0.14453125, + -0.06982422, + -0.06689453, + 0.19628906, + -0.045410156, + 0.091796875, + 0.016845703, + 0.036865234, + 0.046875, + -0.0032806396, + 0.032958984, + 0.005706787, + -0.076660156, + 0.0027160645, + -0.19335938, + -0.053710938, + -0.18847656, + 0.011108398, + 0.064941406, + -0.037841797, + 0.039794922, + 0.08984375, + 0.018798828, + 0.044189453, + -0.16699219, + 0.14257812, + -0.04272461, + 0.03125, + -0.04638672, + -0.09423828, + 0.048828125, + 0.28515625, + -0.0134887695, + -0.025512695, + -0.10595703, + -0.09277344, + 0.03491211, + -0.0138549805, + 0.072753906, + -0.04248047, + -0.072753906, + 0.21191406, + -0.083984375, + 0.08691406, + 0.068359375, + 0.076660156, + 0.15917969, + 0.08203125, + -0.15039062, + 0.024902344, + 0.11279297, + 0.051513672, + -0.640625, + -0.10546875, + -0.020263672, + 0.063964844, + -0.024414062, + 0.063964844, + -0.08154297, + -0.18847656, + 0.12597656, + -0.056396484, + 0.03125, + 0.057617188, + -0.005126953, + -0.061279297, + 2.34375, + 0.076171875, + -0.140625, + 0.021728516, + 0.067871094, + -0.000086307526, + -0.021362305, + -0.003479004, + 0.07861328, + -0.009094238, + 0.08691406, + 0.07763672, + -0.05419922, + 0.03125, + -0.009216309, + 0.23632812, + 0.024536133, + -0.03173828, + 0.0032043457, + 0.09863281, + -0.15917969, + 0.110839844, + 0.002029419, + 0.07128906, + -0.19140625, + -0.064941406, + -0.10107422, + 0.14648438, + 0.030395508, + 0.045654297, + 0.037597656, + -0.11621094, + 0.020385742, + 0.0025177002, + -0.067871094, + -0.0859375, + 0.05834961, + -0.003326416, + 0.068847656, + 0.16210938, + -0.17382812, + -0.10644531, + 0.10253906, + -0.06542969, + -0.037841797, + 0.044433594, + -0.01361084, + 0.017700195, + -0.045898438, + 0.041748047, + -0.140625, + 0.006713867, + -0.020141602, + 0.12207031, + 0.24707031, + 0.09765625, + 0.092285156, + 0.091796875, + 0.123046875, + 0.07714844, + -0.013671875, + -0.020263672, + 0.0051879883, + -0.119140625, + 0.12060547, + 0.18554688, + 0.083496094, + -0.06738281, + -0.08300781, + -0.16601562, + -0.03930664, + 0.056884766, + 0.07421875, + -0.050048828, + 0.002532959, + 0.036132812, + -0.051513672, + -0.118652344, + 0.052001953, + -0.044677734, + 0.06591797, + 0.27734375, + 0.08154297, + 0.028564453, + 0.27734375, + 0.055664062, + 0.35351562, + 0.092285156, + 0.057128906, + 0.103027344, + -0.059570312, + 0.044921875, + -0.064453125, + -0.16308594, + -0.00680542, + 0.10253906, + 0.43945312, + 0.018554688, + -0.16015625, + -0.0062561035, + -0.08105469, + -0.12988281, + 0.09423828, + -0.17773438, + -0.052001953, + -0.08251953, + 0.125, + 0.14355469, + -0.1875, + 0.0043029785, + -0.084472656, + -0.021484375, + 0.0076904297, + 0.19824219, + -0.067871094, + 0.03173828, + 0.057617188, + -0.053955078, + 0.029296875, + 0.017944336, + -0.0026855469, + -0.072753906, + -0.08203125, + -0.053955078, + 0.0076293945, + 0.075683594, + -0.05419922, + -0.06201172, + 0.16992188, + -0.0022583008, + 0.07470703, + -0.19140625, + -0.103515625, + 0.234375, + 0.07470703, + -0.20117188, + -0.08691406, + 0.024414062, + 0.091796875, + 0.109375, + 0.076171875, + -0.012817383, + 0.12451172, + 0.11669922, + -0.20996094, + 0.037109375, + -0.0024414062, + -0.028930664, + 0.10986328, + -0.10888672, + 0.09423828, + 0.04736328, + -0.087890625, + -0.06591797, + -0.07519531, + 0.26367188, + 0.15917969, + 0.28320312, + 0.06591797, + -0.030395508, + -0.30273438, + 0.14160156, + -0.041503906, + -0.010864258, + -0.10107422, + -0.007019043, + -0.33007812, + -0.022460938, + 0.019897461, + 0.034423828, + -0.12597656, + 0.010864258, + 0.0037384033, + 0.00021648407, + 0.041259766, + 0.09375, + 0.7265625, + -0.060546875, + 0.078125, + 0.01586914, + 0.018554688, + 0.025512695, + -0.063964844, + 0.071777344, + -0.046875, + -0.07080078, + 0.0703125, + 0.025024414, + -0.01953125, + 0.047851562, + -0.061523438, + -0.012817383, + -0.04321289, + -0.037109375, + -0.16113281, + 0.033203125, + -0.22167969, + -0.03491211, + 0.044921875, + -0.064453125, + -0.036621094, + 0.05444336, + -0.048828125, + 0.107421875, + -0.011047363, + -0.07910156, + 0.05126953, + -0.10839844, + -0.029663086, + -0.036132812, + -0.08544922, + 0.0050964355, + 0.05493164, + 0.05834961, + 0.055908203, + 0.0011901855, + -0.11035156, + 0.66015625, + -0.064453125, + 0.048339844, + 0.030883789, + -0.11816406, + -0.087890625, + 0.03857422, + 0.15625, + -0.045410156, + -0.0012359619, + -0.075683594, + 0.083496094, + -0.029296875, + 0.034179688, + 0.045166016, + -0.13085938, + -0.11230469, + 0.11767578, + 0.053710938, + -0.022094727, + -0.08984375, + -0.044921875, + 0.076171875, + 0.0146484375, + -0.068359375, + -0.03515625, + 0.010009766, + 0.079589844, + 0.13671875, + -0.15234375, + 0.011413574, + 0.03125, + 0.66796875, + 0.014770508, + -0.042236328, + -0.004547119, + -0.03564453, + 0.040039062, + 0.13085938, + 0.03173828, + -0.052734375, + -0.020874023, + 0.04345703, + 0.037841797, + 0.08300781, + -0.15429688, + -0.03564453, + 0.061767578, + -0.0048217773, + -0.036376953, + 0.09863281, + -0.18359375, + -0.028320312, + 0.016723633, + 0.110839844, + 0.11279297, + 0.040527344, + 0.27929688, + -0.07714844, + 0.08544922, + 0.123535156, + -0.022460938, + -0.23925781, + -0.10107422, + -0.088378906, + -0.18945312, + 0.103027344, + 0.078125, + 0.009033203, + -0.03466797, + 0.009338379, + -0.000289917, + 0.115234375, + 0.061279297, + -0.3359375, + 0.0546875, + 0.028686523, + -0.1171875, + 0.100097656, + -0.05102539, + 0.041992188, + -0.05810547, + 0.010009766, + 0.08105469, + 0.064941406, + 0.014099121, + -0.05517578, + 0.09277344, + 0.16113281, + 0.063964844, + -0.0015029907, + 0.07470703, + 0.13476562, + -0.05810547, + -0.059570312, + 0.013366699, + -0.00579834, + -0.05493164, + -0.15039062, + 0.023925781, + 0.30273438, + -0.107421875, + 0.032714844, + -0.040039062, + 0.11816406, + -0.111328125, + 0.022583008, + -0.028442383, + -0.030029297, + -0.16210938, + -0.03881836, + 0.08251953, + 0.06933594, + 0.12890625, + 0.079589844, + -0.07763672, + 0.020874023, + -0.038330078, + 0.027709961, + 0.0019378662, + -0.09326172, + 0.002090454, + 0.015625, + -0.028686523, + -0.012451172, + -0.003768921, + -0.0066833496, + -0.15527344, + -0.03100586, + 0.609375, + 0.09082031, + -0.095703125, + 0.09765625, + -0.03491211, + 0.010070801, + -0.13183594, + -0.11376953, + -0.12402344, + -0.09082031, + 0.024047852, + -0.016113281, + -0.10205078, + -0.026611328, + -0.23730469, + 0.26953125, + 0.08300781, + -0.0015411377, + -0.17675781, + -0.14941406, + 0.006652832, + 0.12207031, + -0.011413574, + -0.11328125, + -0.123046875, + 0.07714844, + -0.05053711, + 0.111816406, + -0.08154297, + -0.01953125, + 0.011962891, + 0.1875, + -0.017089844, + -0.115234375, + 0.06738281, + -0.0020599365, + -0.023925781, + 0.043701172, + 0.024658203, + -0.14746094, + -0.12158203, + 0.15234375, + 0.033203125, + 0.1484375, + -0.08544922, + -0.017089844, + 0.21191406, + -0.072265625, + 0.08251953, + 0.15039062, + 0.026489258, + 0.07080078, + -0.015197754, + -0.041015625, + 0.08203125, + -0.115234375, + -0.115722656, + 0.05419922, + 0.48046875, + -0.09863281, + -0.01574707, + -0.00680542, + 0.04736328, + -0.03564453, + 0.011352539, + 0.11279297, + -0.24707031, + 0.17089844, + 0.055664062, + -0.047607422, + -0.046142578, + -0.044433594, + 0.123046875, + -0.09082031, + -0.109375, + -0.22753906, + 0.05126953, + 0.09033203, + -0.28320312, + -0.07910156, + -0.10498047, + -0.063964844, + 0.08203125, + 0.026123047, + -0.06225586, + -0.099121094, + 0.1015625, + -0.023803711, + -0.14941406, + 0.064941406, + 0.049316406, + 0.0012664795, + -0.09375, + 0.1484375, + 0.07519531, + -0.041259766, + 0.05078125, + 0.027709961, + -0.021118164, + 0.119140625, + -0.095214844, + -0.006713867, + 0.06542969, + 0.16210938, + -0.036865234, + 0.07373047, + -0.028564453, + 0.0016021729, + -0.0001745224, + -0.13085938, + -0.17480469, + 0.15136719, + -0.110839844, + -0.034179688, + -0.095703125, + -0.032226562, + -0.024169922, + 0.27734375, + -0.038330078, + -0.008361816, + 0.07861328, + 0.17578125, + -0.028198242, + 0.08496094, + 0.08691406, + -0.17382812, + -0.051513672, + -0.049072266, + -0.056884766, + 0.011779785, + -0.106933594, + 0.1484375, + 0.03955078, + 0.02319336, + 0.118652344, + -0.005554199, + -0.08154297, + 0.026855469, + 0.013061523, + -0.010864258, + 0.020141602, + -0.103515625, + -0.041259766, + -0.059326172, + 0.0055236816, + 0.05517578, + 0.004272461, + 0.004180908, + -0.118652344, + -0.0138549805, + 13.125, + 0.16601562, + -0.07861328, + 0.103515625, + -0.095703125, + -0.049072266, + 0.004699707, + -0.052246094, + 0.088378906, + -0.11669922, + -0.05053711, + -0.0065612793, + 0.12207031, + 0.092285156, + 0.0018844604, + -0.032958984, + 0.17773438, + -0.0075683594, + -0.08691406, + 0.034423828, + 0.18554688, + -0.056152344, + 0.012817383, + -0.07763672, + 0.056640625, + 0.22070312, + 0.045654297, + 0.010803223, + 0.056640625, + 0.16796875, + -0.025390625, + 0.02758789, + 0.052246094, + 0.1640625, + 0.05908203, + -0.0073242188, + -0.028442383, + -0.23339844, + 0.020874023, + 0.029663086, + -0.10644531, + -0.01953125, + -0.052490234, + 0.030761719, + 0.01574707, + 0.047607422, + -0.025878906, + 0.052490234, + -0.05419922, + 0.13671875, + 0.023925781, + -0.0390625, + 0.006500244, + 0.01550293, + 0.031982422, + 0.0859375, + 0.100097656, + -0.08203125, + 0.09082031, + -0.16015625, + -0.030151367, + -0.08105469, + -0.03112793, + -0.14453125, + -0.10253906, + 0.123535156, + 0.03100586, + -0.11035156, + 0.21679688, + -0.051757812, + 0.08154297, + -0.056152344, + 0.0859375, + -0.018310547, + -0.063964844, + -0.06689453, + -0.0073242188, + 0.025146484, + 0.03491211, + -0.059814453, + 0.0008392334, + 0.08984375, + 0.031982422, + 0.25976562, + 0.053466797, + 0.042236328, + -0.026977539, + 0.10595703, + 0.20605469, + 0.032714844, + -0.103515625, + -0.100097656, + 0.51171875, + -0.03149414, + -0.048095703, + -0.06689453, + 0.06640625, + 0.23339844, + 0.061279297, + 0.06640625, + -0.03857422, + -0.018066406, + 1.15625, + -0.05078125, + -0.16210938, + 0.007385254, + -0.012084961, + 0.052490234, + 0.030761719, + 0.115722656, + 0.04272461, + 0.21191406, + -0.18847656, + 0.00048446655, + -0.0030975342, + -0.03149414, + -0.088378906, + -0.57421875, + -0.08251953, + -0.06347656, + 0.026489258, + 0.032714844, + -0.00093078613, + 0.11425781, + -0.049072266, + -0.030761719, + 0.12060547, + -0.018798828, + 0.008239746, + -0.061279297, + 0.009887695, + 0.029052734, + 0.30664062, + -0.12597656, + -0.091308594, + -0.072265625, + -0.01940918, + 0.0859375, + -0.07373047, + 0.05029297, + 0.07128906, + -0.044433594, + -0.010314941, + 0.036865234, + -0.0051879883, + -0.012939453, + 0.026489258, + 0.034179688, + 0.006378174, + -0.14355469, + 0.06591797 + ] +} \ No newline at end of file diff --git a/src/assets_manager.rs b/src/assets_manager.rs new file mode 100644 index 0000000..ac22d05 --- /dev/null +++ b/src/assets_manager.rs @@ -0,0 +1,461 @@ +//! Assets for Qwen3-TTS - loads numpy files and provides projections + +use std::io::{Read, Seek}; + +pub struct Assets { + pub tts_pad: Vec, + pub proj_weight: Vec, + pub proj_bias: Vec, + pub codec_embeddings: Vec>, + pub text_table: Vec, +} + +impl Assets { + pub fn load(model_dir: &std::path::Path) -> Result> { + println!("Loading assets from: {}", model_dir.display()); + let gguf_path = model_dir.join("qwen3_assets.gguf"); + + if gguf_path.exists() { + println!(" Found GGUF assets: {}", gguf_path.display()); + return Self::load_gguf(&gguf_path); + } + + println!(" GGUF not found, falling back to NPY..."); + // Fallback to legacy NPY loading + Self::load_npy(model_dir) + } + + fn load_gguf(path: &std::path::Path) -> Result> { + // Custom minimal GGUF reader to avoid dependencies + let file = std::fs::File::open(path)?; + let mut reader = std::io::BufReader::new(file); + + // 1. Header + let mut magic = [0u8; 4]; + reader.read_exact(&mut magic)?; + if &magic != b"GGUF" { + return Err("Not a GGUF file".into()); + } + + let mut version_bytes = [0u8; 4]; + reader.read_exact(&mut version_bytes)?; + let version = u32::from_le_bytes(version_bytes); + if version < 2 { + return Err(format!("Unsupported GGUF version: {}", version).into()); + } + + let mut tensor_count_bytes = [0u8; 8]; + reader.read_exact(&mut tensor_count_bytes)?; + let tensor_count = u64::from_le_bytes(tensor_count_bytes); + + let mut kv_count_bytes = [0u8; 8]; + reader.read_exact(&mut kv_count_bytes)?; + let kv_count = u64::from_le_bytes(kv_count_bytes); + + // Sub-helper to read string + let read_string = |r: &mut std::io::BufReader| -> Result> { + let mut len_bytes = [0u8; 8]; + r.read_exact(&mut len_bytes)?; + let len = u64::from_le_bytes(len_bytes) as usize; + let mut bytes = vec![0u8; len]; + r.read_exact(&mut bytes)?; + Ok(String::from_utf8(bytes)?) + }; + + // 2. Metadata KV (Skip) + for _ in 0..kv_count { + let _key = read_string(&mut reader)?; + let mut type_bytes = [0u8; 4]; + reader.read_exact(&mut type_bytes)?; + let val_type = u32::from_le_bytes(type_bytes); + + match val_type { + 0..=7 => { + // Simplified skipping logic + let size = match val_type { + 0 | 1 | 7 => 1, + 2 | 3 => 2, + 4..=6 => 4, + _ => 0, + }; + if size > 0 { + let mut b = vec![0u8; size]; + reader.read_exact(&mut b)?; + } + } + 8 => { + let _s = read_string(&mut reader)?; + } // String + 10..=12 => { + let mut b = [0u8; 8]; + reader.read_exact(&mut b)?; + } // 64-bit + 9 => { + return Err( + "Array type in GGUF metadata not implemented in simple reader".into(), + ); + } + _ => return Err(format!("Unknown GGUF value type: {}", val_type).into()), + } + } + + // 3. Tensors Info + struct TensorInfo { + name: String, + offset: u64, + shape: Vec, + _type: u32, + } + let mut tensors = std::collections::HashMap::new(); + + for _ in 0..tensor_count { + let name = read_string(&mut reader)?; + let mut ndim_b = [0u8; 4]; + reader.read_exact(&mut ndim_b)?; + let n_dims = u32::from_le_bytes(ndim_b) as usize; + + let mut shape = Vec::new(); + for _ in 0..n_dims { + let mut dim_b = [0u8; 8]; + reader.read_exact(&mut dim_b)?; + shape.push(u64::from_le_bytes(dim_b) as usize); + } + + let mut type_b = [0u8; 4]; + reader.read_exact(&mut type_b)?; + let type_id = u32::from_le_bytes(type_b); + + let mut offset_b = [0u8; 8]; + reader.read_exact(&mut offset_b)?; + let offset = u64::from_le_bytes(offset_b); + + tensors.insert( + name.clone(), + TensorInfo { + name, + offset, + shape, + _type: type_id, + }, + ); + } + + // Padding alignment + let current_pos = reader.stream_position()?; + let alignment = 32; + let padding = (alignment - (current_pos % alignment)) % alignment; + reader.seek(std::io::SeekFrom::Current(padding as i64))?; + let data_start = reader.stream_position()?; + + let path_clone = path.to_path_buf(); + let read_tensor_data = |info: &TensorInfo| -> Result, Box> { + let mut f = std::fs::File::open(&path_clone)?; + f.seek(std::io::SeekFrom::Start(data_start + info.offset))?; + + let num_elems: usize = info.shape.iter().product(); + println!( + " Debug: Reading tensor '{}' shape={:?}, elems={}, bytes={}", + info.name, + info.shape, + num_elems, + num_elems * 4 + ); + if info._type != 0 { + return Err( + format!("Unsupported tensor type: {} (expected F32)", info._type).into(), + ); + } + + if num_elems * 4 != info.shape.iter().product::() * 4 { + // Paranoia check + } + + // Allocate Vec directly + let mut floats = Vec::new(); + if let Err(e) = floats.try_reserve_exact(num_elems) { + return Err(format!( + "Failed to reserve memory for tensor '{}' (f32): {}", + info.name, e + ) + .into()); + } + floats.resize(num_elems, 0.0); + + // Read directly into the f32 buffer as bytes + // SAFETY: f32 and u8 have same layout size ratio (1:4). + // We just treat the slice of f32s as a mutable slice of u8s. + let byte_slice = unsafe { + std::slice::from_raw_parts_mut(floats.as_mut_ptr() as *mut u8, num_elems * 4) + }; + + // Read in chunks + let chunk_size = 100 * 1024 * 1024; + let total_bytes = num_elems * 4; + let mut current_read = 0; + + while current_read < total_bytes { + let remaining = total_bytes - current_read; + let to_read = remaining.min(chunk_size); + + f.read_exact(&mut byte_slice[current_read..current_read + to_read])?; + current_read += to_read; + } + + println!( + " Debug: Tensor '{}' read complete (optimized).", + info.name + ); + Ok(floats) + }; + + // Load specific tensors + let proj_weight = read_tensor_data( + tensors + .get("proj.weight") + .ok_or("proj.weight (tensor) missing")?, + )?; + println!(" Debug: proj.weight loaded."); + + let proj_bias = read_tensor_data( + tensors + .get("proj.bias") + .ok_or("proj.bias (tensor) missing")?, + )?; + println!(" Debug: proj.bias loaded."); + + let text_table = if let Some(info) = tensors.get("text_embd") { + let data = read_tensor_data(info)?; + println!(" Debug: text_embd loaded."); + data + } else { + println!(" WARNING: text_embd not found in GGUF!"); + Vec::new() + }; + + let mut codec_embeddings = Vec::new(); + for i in 0..16 { + let name = format!("codec_embd.{}", i); + if let Some(info) = tensors.get(&name) { + codec_embeddings.push(read_tensor_data(info)?); + } + } + println!(" Debug: codec_embeddings loaded."); + + let tts_pad = if text_table.len() >= (151671 + 1) * 2048 { + let start = 151671 * 2048; + text_table[start..start + 2048].to_vec() + } else { + vec![0.0; 2048] + }; + println!(" Debug: tts_pad loaded."); + + println!( + " Loaded via GGUF (Custom Reader): ProjW={}, TextTbl={}, Codec={}", + proj_weight.len(), + text_table.len(), + codec_embeddings.len() + ); + + Ok(Self { + tts_pad, + proj_weight, + proj_bias, + codec_embeddings, + text_table, + }) + } + + fn load_npy(model_dir: &std::path::Path) -> Result> { + let proj_weight = Self::load_npy_f32(&model_dir.join("proj_weight.npy"))?; + let proj_bias = Self::load_npy_f32_1d(&model_dir.join("proj_bias.npy"))?; + + let text_table_path = model_dir.join("text_embedding_projected.npy"); + let text_table = if text_table_path.exists() { + Self::load_npy_f32(&text_table_path)? + } else { + Vec::new() + }; + + let mut codec_embeddings = Vec::new(); + for i in 0..16 { + let emb_path = model_dir.join(format!("codec_embedding_{}.npy", i)); + if emb_path.exists() { + codec_embeddings.push(Self::load_npy_f32(&emb_path)?); + } + } + + let tts_pad = if text_table.len() >= (151671 + 1) * 2048 { + let start = 151671 * 2048; + text_table[start..start + 2048].to_vec() + } else { + vec![0.0; 2048] + }; + + Ok(Self { + tts_pad, + proj_weight, + proj_bias, + codec_embeddings, + text_table, + }) + } + + fn load_npy_f32(path: &std::path::Path) -> Result, Box> { + let mut file = std::fs::File::open(path)?; + let mut magic = [0u8; 10]; + file.read_exact(&mut magic)?; + + if &magic[..6] != b"\x93NUMPY" { + return Err("Not a numpy file".into()); + } + + let version = (magic[6], magic[7]); + let header_len = match version { + (1, _) => { + file.seek(std::io::SeekFrom::Start(8))?; + let mut len = [0u8; 2]; + file.read_exact(&mut len)?; + u16::from_le_bytes(len) as usize + } + (2, _) => { + file.seek(std::io::SeekFrom::Start(8))?; + let mut len = [0u8; 4]; + file.read_exact(&mut len)?; + u32::from_le_bytes(len) as usize + } + _ => return Err("Unsupported numpy version".into()), + }; + + let mut header = vec![0u8; header_len]; + file.read_exact(&mut header)?; + + let shape_start = header + .windows(6) + .position(|w| std::str::from_utf8(w).unwrap_or("").starts_with("shape")); + + let shape_str = if let Some(pos) = shape_start { + let mut start = pos + 6; + while start < header.len() && header[start] != b'(' { + start += 1; + } + if start < header.len() { + let mut end = start + 1; + while end < header.len() && header[end] != b')' { + end += 1; + } + String::from_utf8_lossy(&header[start + 1..end]).to_string() + } else { + String::new() + } + } else { + String::new() + }; + + let shape: Vec = shape_str + .split(',') + .filter(|s| !s.trim().is_empty()) + .filter_map(|s| { + s.trim() + .trim_matches(|c| c == '(' || c == ')' || c == '[' || c == ']') + .parse() + .ok() + }) + .collect(); + + let total_elements: usize = shape.iter().product(); + let elem_size = 4; + + let mut data = vec![0u8; total_elements * elem_size]; + file.read_exact(&mut data)?; + + let fdata: Vec = data + .chunks_exact(4) + .map(|c| f32::from_le_bytes([c[0], c[1], c[2], c[3]])) + .collect(); + + Ok(fdata) + } + + fn load_npy_f32_1d(path: &std::path::Path) -> Result, Box> { + Self::load_npy_f32(path) + } + + pub fn project(&self, hidden: &[f32]) -> Vec { + let n_in = hidden.len(); + let n_out = self.proj_bias.len(); + let mut result = vec![0.0; n_out]; + + for (out_idx, res) in result.iter_mut().enumerate().take(n_out) { + let mut sum = self.proj_bias[out_idx]; + for (in_idx, h) in hidden.iter().enumerate().take(n_in) { + // PyTorch Linear weights are [out_features, in_features] + // Correct index: out_idx * n_in + in_idx + sum += h * self.proj_weight[out_idx * n_in + in_idx]; + } + *res = sum; + } + + result + } + + pub fn project_embedding(&self, emb_2048: &[f32]) -> Vec { + let n_in = 2048; + let n_out = self.proj_bias.len(); + let mut result = vec![0.0; n_out]; + + for (out_idx, res) in result.iter_mut().enumerate().take(n_out) { + let mut sum = self.proj_bias[out_idx]; + for (in_idx, val) in emb_2048.iter().enumerate().take(n_in) { + // PyTorch Linear weights are [out_features, in_features] + // Correct index: out_idx * n_in + in_idx + sum += val * self.proj_weight[out_idx * n_in + in_idx]; + } + *res = sum; + } + + result + } + + pub fn get_codec_embedding(&self, q: usize, code: i32) -> Vec { + if q < self.codec_embeddings.len() { + let emb = &self.codec_embeddings[q]; + let code = code.max(0) as usize; + let start = code * 2048; + if start + 2048 <= emb.len() { + return emb[start..start + 2048].to_vec(); + } else { + eprintln!( + "WARNING: OOB Code Access: q={}, code={}, start={}, len={}", + q, + code, + start, + emb.len() + ); + } + } + vec![0.0; 2048] + } + + pub fn get_codec_embedding_1024(&self, q: usize, code: i32) -> Vec { + let emb_2048 = self.get_codec_embedding(q, code); + self.project_embedding(&emb_2048) + } + + pub fn get_text_embedding(&self, token_id: usize) -> Vec { + let start = token_id * 2048; + if start + 2048 <= self.text_table.len() { + self.text_table[start..start + 2048].to_vec() + } else { + // Fallback for OOB tokens (should not happen usually) + self.get_text_embedding_fallback(token_id) + } + } + + pub fn get_text_embedding_fallback(&self, token_id: usize) -> Vec { + let mut result = vec![0.0; 2048]; + for i in 0..2048.min(result.len()) { + result[i] = ((token_id * 17 + i) as f32 % 2.0) - 1.0; + } + result + } +} diff --git a/src/bin/qwen3_tts.rs b/src/bin/qwen3_tts.rs new file mode 100644 index 0000000..54632d6 --- /dev/null +++ b/src/bin/qwen3_tts.rs @@ -0,0 +1,173 @@ +use clap::Parser; +use qwen3_tts::SamplerConfig; +use qwen3_tts::TtsEngine; +use qwen3_tts::VoiceFile; +use std::path::PathBuf; +use std::time::Instant; + +#[derive(Parser, Debug)] +#[command(author, version, about, long_about = None)] +struct Args { + /// Model directory (contains models/assets) + #[arg(long, default_value = "models")] + model_dir: PathBuf, + + /// Helper: GGUF quantization (none, q5_k_m, q8_0). default: none (unquantized/gguf) + #[arg(long, default_value = "none")] + quant: String, + + /// Text to generate + #[arg(short, long)] + text: String, + + /// Preset voice file (.json) + #[arg(short, long)] + voice_file: Option, + + /// Reference audio file for feature extraction (.wav) + #[arg(long)] + ref_audio: Option, + + /// Reference text for the record audio + #[arg(long)] + ref_text: Option, + + /// Path to save the extracted VoiceFile (.json) + #[arg(long)] + save_voice: Option, + + /// Output audio file + #[arg(short, long, default_value = "output.wav")] + output: PathBuf, + + /// Maximum generation steps (tokens) + #[arg(long, default_value_t = 512)] + max_steps: usize, + + /// Speakers directory + #[arg(long, default_value = "speakers")] + speakers_dir: PathBuf, + + /// Speaker name or ID (fallback to vivian) + #[arg(short, long)] + speaker: Option, + + /// Instruction style (e.g. "Happy", "Sad") - prepended to text + #[arg(long)] + instruction: Option, + + /// Temperature for sampling (higher = more random, 0.0 = greedy) + #[arg(long, default_value_t = 0.7)] + temperature: f32, + + /// Top-K sampling (0 = disabled) + #[arg(long, default_value_t = 40)] + top_k: i32, + + /// Top-P (nucleus) sampling (1.0 = disabled) + #[arg(long, default_value_t = 0.9)] + top_p: f32, + + /// Random seed for reproducibility (omit for random) + #[arg(long)] + seed: Option, + + /// Number of threads for inference + #[arg(long, default_value_t = 4)] + threads: i32, +} + +#[tokio::main] +async fn main() -> Result<(), Box> { + let args = Args::parse(); + let start_total = Instant::now(); + + println!("=== Qwen3-TTS Example CLI ==="); + println!("Model Dir: {:?}", args.model_dir); + println!("Quant: {}", args.quant); + println!("Threads: {}", args.threads); + println!("Voice: {:?}", args.voice_file); + println!("Text: {}", args.text); + + // 0. Auto-download (Explicit step) + println!("Checking models..."); + TtsEngine::download_models(&args.model_dir, &args.quant) + .await + .map_err(|e| format!("Model download failed: {}", e))?; + + // 1. Load Engine + let mut engine = TtsEngine::new(&args.model_dir, &args.quant, args.threads) + .await + .map_err(|e| format!("Engine load failed: {}", e))?; + engine.set_max_steps(args.max_steps); + + // 1.1 Configure sampler + let sampler_config = SamplerConfig::new(args.temperature, args.top_k, args.top_p, args.seed); + engine.set_sampler_config(sampler_config); + println!( + "Sampler: temp={}, top_k={}, top_p={}, seed={:?}", + args.temperature, args.top_k, args.top_p, args.seed + ); + + // 1.5 Load custom speakers if dir specified + if args.speakers_dir.exists() { + engine.load_speakers(&args.speakers_dir)?; + } + + // 2. Load or Create Voice File + let voice = if let Some(audio_path) = args.ref_audio { + println!("Creating voice from reference: {:?}", audio_path); + let ref_text = args.ref_text.unwrap_or_default(); + let vf = engine + .create_voice_file(audio_path, ref_text) + .map_err(|e| format!("Feature extraction failed: {}", e))?; + + if let Some(save_path) = args.save_voice { + vf.save(&save_path) + .map_err(|e| format!("Failed to save voice file: {}", e))?; + println!("Saved new voice file to: {:?}", save_path); + } + vf + } else if let Some(vf_path) = args.voice_file { + println!("Loading voice from file: {:?}", vf_path); + VoiceFile::load(vf_path).map_err(|e| format!("Failed to load voice file: {}", e))? + } else { + let spk_id = args.speaker.as_deref().unwrap_or("vivian"); + println!("Using speaker from cache: {}", spk_id); + engine.get_speaker(spk_id).clone() + }; + + println!("Voice Name: {}", voice.name.as_deref().unwrap_or("Dynamic")); + + // 3. Generate + let start_gen = Instant::now(); + println!("Generating..."); + + // Generate + let audio = engine + .generate_with_voice_streaming(&args.text, &voice, args.instruction.as_deref(), None) + .map_err(|e| format!("Generation failed: {}", e))?; + + let gen_duration = start_gen.elapsed(); + println!("Generation took: {:.2}s", gen_duration.as_secs_f32()); + + let audio_duration_secs = audio.samples.len() as f32 / audio.sample_rate as f32; + let rtf = gen_duration.as_secs_f32() / audio_duration_secs; + println!( + "Audio: {:.2}s ({} samples @ {} Hz), RTF: {:.3}", + audio_duration_secs, + audio.samples.len(), + audio.sample_rate, + rtf + ); + + // 4. Save + audio + .save_wav(&args.output) + .map_err(|e| format!("Failed to save output: {}", e))?; + + println!("Saved to: {:?}", args.output); + println!("Total time: {:.2}s", start_total.elapsed().as_secs_f32()); + + Ok(()) +} diff --git a/src/bin/qwen3_tts_server.rs b/src/bin/qwen3_tts_server.rs new file mode 100644 index 0000000..4d583eb --- /dev/null +++ b/src/bin/qwen3_tts_server.rs @@ -0,0 +1,366 @@ +use axum::{ + extract::{ + ws::{Message, WebSocket, WebSocketUpgrade}, + DefaultBodyLimit, State, + }, + http::header, + response::{Html, IntoResponse}, + routing::{get, post}, + Json, Router, +}; +use base64::{engine::general_purpose::STANDARD as BASE64, Engine}; +use clap::Parser; +use qwen3_tts::{TtsEngine, VoiceFile}; +use serde::{Deserialize, Serialize}; +use std::{collections::HashMap, net::SocketAddr, path::PathBuf, sync::Arc, time::Instant}; +use tokio::sync::Mutex; +use tower_http::cors::{Any, CorsLayer}; + +#[derive(Parser, Debug)] +#[command(author, version, about, long_about = None)] +struct Args { + #[arg(long, default_value = "models")] + model_dir: PathBuf, + + #[arg(long, default_value = "q5_k_m")] + quant: String, + + #[arg(long, default_value = "speakers")] + speakers_dir: PathBuf, + + #[arg(long, default_value = "3000")] + port: u16, + + #[arg(long, default_value = "127.0.0.1")] + host: String, + + #[arg(long, default_value_t = 4)] + threads: i32, +} + +struct AppState { + engine: Arc>, + speakers: HashMap, +} + +#[derive(Debug, Serialize, Deserialize)] +struct TTSRequest { + text: String, + speaker: Option, + temperature: Option, + top_k: Option, + top_p: Option, + seed: Option, + instruction: Option, + max_steps: Option, +} + +#[derive(Debug, Serialize, Deserialize)] +struct TTSResponse { + success: bool, + message: Option, + audio_base64: Option, + sample_rate: Option, + duration_ms: Option, +} + +#[derive(Debug, Serialize, Deserialize)] +struct SpeakersResponse { + speakers: Vec, +} + +#[tokio::main] +async fn main() -> Result<(), Box> { + let args = Args::parse(); + + println!("=== Qwen3-TTS Server ==="); + println!("Model Dir: {:?}", args.model_dir); + println!("Quant: {}", args.quant); + println!("Port: {}", args.port); + println!("Threads: {}", args.threads); + + println!("Checking models..."); + TtsEngine::download_models(&args.model_dir, &args.quant) + .await + .map_err(|e| format!("Model download failed: {}", e))?; + + println!("Loading engine..."); + let mut engine = TtsEngine::new(&args.model_dir, &args.quant, args.threads) + .await + .map_err(|e| format!("Engine load failed: {}", e))?; + + if args.speakers_dir.exists() { + engine.load_speakers(&args.speakers_dir)?; + } + + let speakers = engine.get_speakers_map().clone(); + let engine = Arc::new(Mutex::new(engine)); + + let state = AppState { engine, speakers }; + + let app = Router::new() + .route("/", get(index)) + .route("/audio-processor.js", get(audio_processor)) + .route("/api/tts", post(tts_handler)) + .route("/api/tts/stream", get(tts_stream_handler)) + .route("/api/speakers", get(speakers_handler)) + .route("/health", get(health)) + .layer( + CorsLayer::new() + .allow_origin(Any) + .allow_methods(Any) + .allow_headers(Any), + ) + .layer(DefaultBodyLimit::max(50 * 1024 * 1024)) + .with_state(Arc::new(state)); + + let addr: SocketAddr = format!("{}:{}", args.host, args.port).parse()?; + println!("Server running at http://{}", addr); + println!("API endpoints:"); + println!(" POST /api/tts - Generate TTS audio (non-streaming)"); + println!(" GET /api/tts/stream - WebSocket streaming TTS"); + println!(" GET /api/speakers - List available speakers"); + println!(" GET /health - Health check"); + + let listener = tokio::net::TcpListener::bind(&addr).await?; + axum::serve(listener, app).await?; + + Ok(()) +} + +async fn index() -> Html<&'static str> { + Html(include_str!("../../webui/index.html")) +} + +async fn audio_processor() -> impl IntoResponse { + ( + [(header::CONTENT_TYPE, "application/javascript")], + include_str!("../../webui/audio-processor.js"), + ) +} + +async fn health() -> &'static str { + "OK" +} + +async fn speakers_handler(State(state): State>) -> Json { + let names: Vec = state.speakers.keys().cloned().collect(); + Json(SpeakersResponse { speakers: names }) +} + +async fn tts_handler( + State(state): State>, + Json(req): Json, +) -> Json { + let start = Instant::now(); + let speaker_name = req.speaker.unwrap_or_else(|| "vivian".to_string()); + + let voice = state.speakers.get(&speaker_name).cloned(); + + let voice = match voice { + Some(v) => v, + None => { + return Json(TTSResponse { + success: false, + message: Some(format!("Speaker '{}' not found", speaker_name)), + audio_base64: None, + sample_rate: None, + duration_ms: None, + }); + } + }; + + let mut engine = state.engine.lock().await; + + // 一次性修改采样器配置 + { + let config = engine.get_sampler_config().clone(); + let mut new_config = config; + if let Some(temp) = req.temperature { + new_config.temperature = temp; + } + if let Some(top_k) = req.top_k { + new_config.top_k = top_k; + } + if let Some(top_p) = req.top_p { + new_config.top_p = top_p; + } + if let Some(seed) = req.seed { + new_config.seed = Some(seed); + } + engine.set_sampler_config(new_config); + } + + // 设置 max_steps + if let Some(max_steps) = req.max_steps { + engine.set_max_steps(max_steps); + } + + let result = + engine.generate_with_voice_streaming(&req.text, &voice, req.instruction.as_deref(), None); + + match result { + Ok(audio) => { + let duration_ms = (audio.samples.len() as f64 / audio.sample_rate as f64) * 1000.0; + let audio_duration_secs = audio.samples.len() as f64 / audio.sample_rate as f64; + let rtf = start.elapsed().as_secs_f64() / audio_duration_secs; + println!( + "RTF: {:.3} (gen: {:.2}s, audio: {:.2}s)", + rtf, + start.elapsed().as_secs_f64(), + audio_duration_secs + ); + + let wav_data = audio.to_wav_bytes(); + + Json(TTSResponse { + success: true, + message: None, + audio_base64: Some(BASE64.encode(&wav_data)), + sample_rate: Some(audio.sample_rate), + duration_ms: Some(duration_ms), + }) + } + Err(e) => Json(TTSResponse { + success: false, + message: Some(e), + audio_base64: None, + sample_rate: None, + duration_ms: None, + }), + } +} + +// WebSocket 流式 TTS 处理器 +async fn tts_stream_handler( + ws: WebSocketUpgrade, + State(state): State>, +) -> axum::response::Response { + ws.on_upgrade(move |socket| handle_tts_stream(socket, state)) +} + +async fn handle_tts_stream(mut socket: WebSocket, state: Arc) { + let (text_tx, text_rx) = std::sync::mpsc::channel::<(String, Option, Option)>(); + let (audio_tx, mut audio_rx) = tokio::sync::mpsc::unbounded_channel::>(); + + let engine = state.engine.clone(); + let speakers = state.speakers.clone(); + + let mut total_samples: usize = 0; + let stream_start = std::time::Instant::now(); + + std::thread::spawn(move || { + let mut engine = engine.blocking_lock(); + let mut voice: Option = None; + + while let Ok((text, speaker_name, instruction)) = text_rx.recv() { + if text.is_empty() { + break; + } + + if voice.is_none() { + let spk_name = speaker_name.unwrap_or_else(|| "vivian".to_string()); + voice = speakers.get(&spk_name).cloned(); + if voice.is_none() { + let _ = audio_tx.send(vec![]); + break; + } + } + + let voice_ref = voice.as_ref().unwrap(); + + let result = engine.generate_with_voice_streaming( + &text, + voice_ref, + instruction.as_deref(), + Some(audio_tx.clone()), + ); + + if result.is_err() { + break; + } + + let _ = audio_tx.send(vec![]); + } + }); + + let mut current_speaker: Option = None; + let mut end_requested = false; + + loop { + if end_requested { + match audio_rx.recv().await { + Some(samples) => { + if samples.is_empty() { + let _ = socket.send(Message::Text("segment_done".to_string())).await; + } else { + let bytes: Vec = samples.iter().flat_map(|s| s.to_le_bytes()).collect(); + if socket.send(Message::Binary(bytes)).await.is_err() { + break; + } + } + } + None => break, + } + } else { + tokio::select! { + Some(samples) = audio_rx.recv() => { + if samples.is_empty() { + let gen_time = stream_start.elapsed().as_secs_f64(); + let audio_duration = total_samples as f64 / 24000.0; + let rtf = if audio_duration > 0.0 { gen_time / audio_duration } else { 0.0 }; + eprintln!("[Stream] RTF: {:.3} (gen: {:.2}s, audio: {:.2}s)", rtf, gen_time, audio_duration); + + let _ = socket.send(Message::Text("segment_done".to_string())).await; + } else { + total_samples += samples.len(); + eprintln!("[Stream] received {} samples, total: {}", samples.len(), total_samples); + let bytes: Vec = samples + .iter() + .flat_map(|s| s.to_le_bytes()) + .collect(); + if socket.send(Message::Binary(bytes)).await.is_err() { + break; + } + } + } + msg = socket.recv() => { + match msg { + Some(Ok(Message::Text(text))) => { + if text == "end" { + let _ = text_tx.send((String::new(), None, None)); + end_requested = true; + } else { + let req: TTSRequest = match serde_json::from_str(&text) { + Ok(r) => r, + Err(e) => { + let _ = socket.send(Message::Text(format!("{{\"error\": \"Invalid request: {}\"}}", e))).await; + continue; + } + }; + + if current_speaker.is_none() { + current_speaker = req.speaker.clone(); + } + + let text_to_generate = req.text.trim(); + if !text_to_generate.is_empty() { + let _ = text_tx.send((text_to_generate.to_string(), current_speaker.clone(), req.instruction.clone())); + } + } + } + Some(Ok(Message::Close(_))) => break, + Some(Ok(Message::Binary(_))) => continue, + Some(Ok(Message::Ping(_))) => continue, + Some(Ok(Message::Pong(_))) => continue, + Some(Err(_)) => break, + None => break, + } + } + } + } + } + + let _ = text_tx.send((String::new(), None, None)); + let _ = socket.send(Message::Text("done".to_string())).await; +} diff --git a/src/download.rs b/src/download.rs new file mode 100644 index 0000000..b065ed7 --- /dev/null +++ b/src/download.rs @@ -0,0 +1,364 @@ +use futures_util::StreamExt; +use indicatif::{ProgressBar, ProgressStyle}; +use reqwest::Client; +use std::fs::File; +use std::io::Write; +use std::path::Path; + +pub struct Downloader { + client: Client, + model_base_url: String, +} + +impl Downloader { + pub async fn new() -> Self { + let client = Client::new(); + // Check connectivity to huggingface.co for MODELS + let hf_base = if Self::check_connectivity(&client, "https://huggingface.co").await { + "https://huggingface.co" + } else { + "https://hf-mirror.com" + }; + + let model_base_url = format!("{}/cgisky/qwen3-tts-custom-gguf/resolve/main", hf_base); + + Self { + client, + model_base_url, + } + } + + async fn check_connectivity(client: &Client, url: &str) -> bool { + let result = client + .head(url) + .timeout(std::time::Duration::from_secs(3)) + .send() + .await; + result.is_ok() + } + + /// Check and download both models and runtime libraries + pub async fn check_and_download( + &self, + model_dir: &Path, + quant: &str, + ) -> Result<(), Box> { + // 1. Check Models + self.download_models(model_dir, quant).await?; + + // 2. Check Runtime Libraries (DLLs/SOs) + self.download_runtimes().await?; + + Ok(()) + } + + async fn download_models( + &self, + model_dir: &Path, + quant: &str, + ) -> Result<(), Box> { + let quant_folder = match quant { + "q5_k_m" => "gguf_q5_k_m", + "q8_0" => "gguf_q8_0", + _ => "gguf", + }; + + let files = vec![ + ( + "onnx/qwen3_tts_decoder.onnx".to_owned(), + "onnx/qwen3_tts_decoder.onnx".to_owned(), + 1_000_000usize, + ), + ( + "tokenizer/tokenizer.json".to_owned(), + "tokenizer/tokenizer.json".to_owned(), + 1_000_000usize, + ), + ( + format!("{}/qwen3_assets.gguf", quant_folder), + format!("{}/qwen3_assets.gguf", quant_folder), + 500_000_000usize, + ), + ( + format!("{}/qwen3_tts_talker.gguf", quant_folder), + format!("{}/qwen3_tts_talker.gguf", quant_folder), + 100_000_000usize, + ), + ( + format!("{}/qwen3_tts_predictor.gguf", quant_folder), + format!("{}/qwen3_tts_predictor.gguf", quant_folder), + 50_000_000usize, + ), + ]; + + for (remote, local, min_size) in files { + let local_path = model_dir.join(&local); + let should_download = match std::fs::metadata(&local_path) { + Ok(meta) => meta.len() < min_size as u64, + Err(_) => true, + }; + + if should_download { + if let Some(p) = local_path.parent() { + std::fs::create_dir_all(p)?; + } + let url = format!("{}/{}", self.model_base_url, remote); + if local_path.exists() { + println!( + "Refreshing Model: {} (found {} bytes, expected at least {})...", + local, + std::fs::metadata(&local_path)?.len(), + min_size + ); + let _ = std::fs::remove_file(&local_path); + } else { + println!("Downloading Model: {}...", local); + } + self.download_to_file(&url, &local_path).await?; + } + } + Ok(()) + } + + pub async fn download_runtimes(&self) -> Result<(), Box> { + let runtime_dir = Path::new("runtime"); + if !runtime_dir.exists() { + std::fs::create_dir_all(runtime_dir)?; + } + + let os = if cfg!(target_os = "windows") { + "win" + } else if cfg!(target_os = "linux") { + "linux" + } else if cfg!(target_os = "macos") { + "osx" + } else { + return Err("Unsupported OS for auto-runtime download".into()); + }; + + let arch = if cfg!(target_arch = "x86_64") { + "x64" + } else if cfg!(target_arch = "aarch64") { + "arm64" + } else { + return Err("Unsupported Architecture for auto-runtime download".into()); + }; + + // Determine Backend + let backend = if cfg!(feature = "cuda") { + "cuda" + } else if cfg!(target_os = "macos") { + "" // macOS uses Metal integrated in the binary + } else { + "vulkan" + }; + + // Platform mapping for llama.cpp release assets + // Windows -> win, Linux -> ubuntu, macOS -> macos + let release_os = if cfg!(target_os = "windows") { + "win" + } else if cfg!(target_os = "macos") { + "macos" + } else { + "ubuntu" + }; + + let release_ext = if cfg!(target_os = "windows") { + "zip" + } else { + "tar.gz" + }; + + // 1. ONNX Runtime + let ort_version = "1.23.2"; + let ort_ext = if os == "win" { "zip" } else { "tgz" }; + let ort_filename = format!("onnxruntime-{}-{}-{}.{}", os, arch, ort_version, ort_ext); + let ort_dll_name = if os == "win" { + "onnxruntime.dll" + } else if os == "osx" { + "libonnxruntime.dylib" + } else { + "libonnxruntime.so" + }; + + if !runtime_dir.join(ort_dll_name).exists() { + println!("Downloading ONNX Runtime ({}-{})...", os, arch); + let ort_url = format!( + "https://github.com/microsoft/onnxruntime/releases/download/v{}/{}", + ort_version, ort_filename + ); + let tmp_zip = Path::new("ort_runtime.tmp"); + self.download_to_file(&ort_url, tmp_zip).await?; + + println!("Extracting ONNX Runtime..."); + if ort_ext == "zip" { + self.extract_zip( + tmp_zip, + runtime_dir, + &format!("onnxruntime-{}-{}-{}", os, arch, ort_version), + "lib", + )?; + } else { + self.extract_targz( + tmp_zip, + runtime_dir, + &format!("onnxruntime-{}-{}-{}", os, arch, ort_version), + "lib", + )?; + } + let _ = std::fs::remove_file(tmp_zip); + } + + // 2. Llama.cpp / GGML (Official Release) + let llama_dll = if os == "win" { + "llama.dll" + } else if os == "osx" { + "libllama.dylib" + } else { + "libllama.so" + }; + + if !runtime_dir.join(llama_dll).exists() { + println!( + "Downloading Llama.cpp Runtimes (Official {} vB7885)...", + if backend.is_empty() { "Metal" } else { backend } + ); + // URL Patterns: + // win: llama-b7885-bin-win-vulkan-x64.zip + // linux: llama-b7885-bin-ubuntu-vulkan-x64.tar.gz + // macos: llama-b7885-bin-macos-arm64.tar.gz + let asset_name = if backend.is_empty() { + format!("llama-b7885-bin-{}-{}.{}", release_os, arch, release_ext) + } else { + format!( + "llama-b7885-bin-{}-{}-{}.{}", + release_os, backend, arch, release_ext + ) + }; + + let llama_url = format!( + "https://github.com/ggerganov/llama.cpp/releases/download/b7885/{}", + asset_name + ); + + let tmp_zip = Path::new("llama_runtime.tmp"); + if let Err(e) = self.download_to_file(&llama_url, tmp_zip).await { + eprintln!( + "Warning: Failed to download llama runtime: {}. Please install manually.", + e + ); + } else { + if release_ext == "zip" { + self.extract_zip(tmp_zip, runtime_dir, "", "")?; + } else { + self.extract_targz(tmp_zip, runtime_dir, "", "")?; + } + let _ = std::fs::remove_file(tmp_zip); + } + } + + Ok(()) + } + + async fn download_to_file( + &self, + url: &str, + path: &Path, + ) -> Result<(), Box> { + let res = self.client.get(url).send().await?; + if !res.status().is_success() { + return Err(format!("HTTP {} for {}", res.status(), url).into()); + } + let total = res.content_length().unwrap_or(0); + let pb = ProgressBar::new(total); + pb.set_style(ProgressStyle::default_bar() + .template("{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {bytes}/{total_bytes} ({eta})")? + .progress_chars("#>-")); + + let mut file = File::create(path)?; + let mut stream = res.bytes_stream(); + while let Some(chunk) = stream.next().await { + let chunk = chunk?; + file.write_all(&chunk)?; + pb.inc(chunk.len() as u64); + } + pb.finish(); + Ok(()) + } + + fn extract_zip( + &self, + zip_path: &Path, + dest: &Path, + prefix: &str, + lib_subdir: &str, + ) -> Result<(), Box> { + let file = File::open(zip_path)?; + let mut archive = zip::ZipArchive::new(file)?; + for i in 0..archive.len() { + let mut file = archive.by_index(i)?; + let outpath = match file.enclosed_name() { + Some(path) => path.to_owned(), + None => continue, + }; + + // Filter by prefix and subdirectory if provided + let path_str = outpath.to_string_lossy(); + if !prefix.is_empty() && !path_str.starts_with(prefix) { + continue; + } + if !lib_subdir.is_empty() && !path_str.contains(lib_subdir) { + // For ONNX, we only want the DLLs in the lib/ folder + if !path_str.ends_with(".dll") + && !path_str.ends_with(".so") + && !path_str.ends_with(".dylib") + { + continue; + } + } + + let file_name = outpath.file_name().unwrap(); + let dest_file = dest.join(file_name); + + if file.is_dir() { + std::fs::create_dir_all(&dest_file)?; + } else { + let mut outfile = File::create(&dest_file)?; + std::io::copy(&mut file, &mut outfile)?; + } + } + Ok(()) + } + + fn extract_targz( + &self, + tar_path: &Path, + dest: &Path, + prefix: &str, + _lib_subdir: &str, + ) -> Result<(), Box> { + let tar_gz = File::open(tar_path)?; + let tar = flate2::read::GzDecoder::new(tar_gz); + let mut archive = tar::Archive::new(tar); + for entry in archive.entries()? { + let mut entry = entry?; + let path = entry.path()?.into_owned(); + let path_str = path.to_string_lossy(); + + if !prefix.is_empty() && !path_str.starts_with(prefix) { + continue; + } + + // Simplified check for libraries + if path_str.ends_with(".so") + || path_str.ends_with(".dylib") + || path_str.ends_with(".dll") + { + let file_name = path.file_name().unwrap(); + let dest_file = dest.join(file_name); + entry.unpack(dest_file)?; + } + } + Ok(()) + } +} diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..cbbe55c --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,20 @@ +//! Qwen3-TTS Rust Library +//! Optimized and organized structure for open source. + +pub mod assets_manager; +pub mod download; +pub mod models; +pub mod tts; +pub mod utils; + +// Re-export core types for convenience +pub use tts::engine::SamplerConfig; +pub use tts::engine::TtsEngine; +pub use tts::prompt::PromptBuilder; +pub use utils::audio::AudioSample; +pub use utils::tokenizer::Tokenizer; +pub use utils::voice_file::VoiceFile; + +pub fn cleanup() { + models::llama::cleanup(); +} diff --git a/src/models/llama/mod.rs b/src/models/llama/mod.rs new file mode 100644 index 0000000..9739ec3 --- /dev/null +++ b/src/models/llama/mod.rs @@ -0,0 +1,1049 @@ +//! Llama.cpp FFI Bindings +use std::ffi::{c_char, c_float, c_void}; +use std::os::raw::{c_int, c_uint}; +use std::path::Path; + +#[cfg(unix)] +fn ensure_runtime_library_link(runtime_path: &Path, lib_name: &str) { + let link_path = runtime_path.join(lib_name); + if link_path.exists() { + return; + } + + if let Ok(output) = std::process::Command::new("gcc") + .arg(format!("-print-file-name={}", lib_name)) + .output() + { + if output.status.success() { + let lib_path = String::from_utf8_lossy(&output.stdout).trim().to_string(); + let lib_path = std::path::PathBuf::from(lib_path); + if lib_path.exists() { + let _ = std::fs::create_dir_all(runtime_path); + let _ = std::os::unix::fs::symlink(&lib_path, &link_path); + } + } + } +} + +#[cfg(not(unix))] +fn ensure_runtime_library_link(_runtime_path: &Path, _lib_name: &str) {} + +#[repr(C)] +pub struct llama_model_params { + pub devices: *mut c_void, + pub tensor_buft_overrides: *mut c_void, + pub n_gpu_layers: c_int, + pub split_mode: c_int, + pub main_gpu: c_int, + pub tensor_split: *mut c_float, + pub progress_callback: *mut c_void, + pub progress_callback_user_data: *mut c_void, + pub kv_overrides: *mut c_void, + pub vocab_only: bool, + pub use_mmap: bool, + pub use_direct_io: bool, + pub use_mlock: bool, + pub check_tensors: bool, + pub use_extra_bufts: bool, + pub no_host: bool, + pub no_alloc: bool, +} +#[repr(C)] +pub struct llama_context_params { + pub n_ctx: c_uint, + pub n_batch: c_uint, + pub n_ubatch: c_uint, + pub n_seq_max: c_uint, + pub n_threads: c_int, + pub n_threads_batch: c_int, + pub rope_scaling_type: c_int, + pub pooling_type: c_int, + pub attention_type: c_int, + pub flash_attn_type: c_int, + pub rope_freq_base: c_float, + pub rope_freq_scale: c_float, + pub yarn_ext_factor: c_float, + pub yarn_attn_factor: c_float, + pub yarn_beta_fast: c_float, + pub yarn_beta_slow: c_float, + pub yarn_orig_ctx: c_uint, + pub defrag_thold: c_float, + pub cb_eval: *mut c_void, + pub cb_eval_user_data: *mut c_void, + pub type_k: c_int, + pub type_v: c_int, + pub abort_callback: *mut c_void, + pub abort_callback_data: *mut c_void, + pub embeddings: bool, + pub offload_kqv: bool, + pub no_perf: bool, + pub op_offload: bool, + pub swa_full: bool, + pub kv_unified: bool, + pub samplers: *mut c_void, + pub n_samplers: usize, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct llama_batch { + pub n_tokens: c_int, + pub token: *mut c_int, + pub embd: *mut c_float, + pub pos: *mut c_int, + pub n_seq_id: *mut c_int, + pub seq_id: *mut *mut c_int, + pub logits: *mut i8, +} +pub type LlamaToken = c_int; +pub type LlamaModelPtr = *mut c_void; +pub type LlamaContextPtr = *mut c_void; +pub type LlamaSamplerPtr = *mut c_void; +pub type LlamaVocabPtr = *mut c_void; + +type LlamaBackendInitFn = unsafe extern "C" fn(); +type LlamaBackendFreeFn = unsafe extern "C" fn(); +type LlamaModelDefaultParamsFn = unsafe extern "C" fn() -> llama_model_params; +type LlamaModelLoadFromFileFn = + unsafe extern "C" fn(*const c_char, llama_model_params) -> LlamaModelPtr; +type LlamaModelFreeFn = unsafe extern "C" fn(LlamaModelPtr); +type LlamaModelGetVocabFn = unsafe extern "C" fn(LlamaModelPtr) -> LlamaVocabPtr; +type LlamaModelNEmbdfn = unsafe extern "C" fn(LlamaModelPtr) -> c_int; +type LlamaModelNHeadFn = unsafe extern "C" fn(LlamaModelPtr) -> c_int; +type LlamaModelNLayerFn = unsafe extern "C" fn(LlamaModelPtr) -> c_int; +type LlamaModelNCtxFn = unsafe extern "C" fn() -> c_int; +type LlamaModelNVocabFn = unsafe extern "C" fn() -> c_int; +type LlamaVocabNTokensFn = unsafe extern "C" fn(LlamaVocabPtr) -> c_int; +type LlamaVocabEosFn = unsafe extern "C" fn(LlamaVocabPtr) -> LlamaToken; +type LlamaContextDefaultParamsFn = unsafe extern "C" fn() -> llama_context_params; +type LlamaInitFromModelFn = + unsafe extern "C" fn(LlamaModelPtr, llama_context_params) -> LlamaContextPtr; +type LlamaFreeFn = unsafe extern "C" fn(LlamaContextPtr); +type LlamaBatchInitFn = unsafe extern "C" fn(c_int, c_int, c_int) -> llama_batch; +type LlamaBatchFreeFn = unsafe extern "C" fn(llama_batch); +type LlamaDecodeFn = unsafe extern "C" fn(LlamaContextPtr, llama_batch) -> c_int; +type LlamaGetEmbeddingsFn = unsafe extern "C" fn(LlamaContextPtr) -> *mut c_float; +type LlamaGetLogitsFn = unsafe extern "C" fn(LlamaContextPtr) -> *mut c_float; +type LlamaGetMemoryFn = unsafe extern "C" fn(LlamaContextPtr) -> *mut c_void; +type LlamaMemoryClearFn = unsafe extern "C" fn(*mut c_void, bool); +type LlamaMemorySeqRmFn = unsafe extern "C" fn(*mut c_void, c_int, c_int, c_int) -> bool; +type LlamaMemorySeqPosMaxFn = unsafe extern "C" fn(*mut c_void, c_int) -> c_int; +type LlamaSamplerInitTempFn = unsafe extern "C" fn(c_float) -> LlamaSamplerPtr; +type LlamaSamplerSampleFn = + unsafe extern "C" fn(LlamaSamplerPtr, LlamaContextPtr, c_int) -> LlamaToken; +type LlamaSamplerFreeFn = unsafe extern "C" fn(LlamaSamplerPtr); +type GgmlBackendLoadAllFn = unsafe extern "C" fn(); + +pub struct LlamaFFI { + pub llama_backend_init: LlamaBackendInitFn, + pub llama_backend_free: LlamaBackendFreeFn, + pub llama_model_default_params: LlamaModelDefaultParamsFn, + pub llama_model_load_from_file: LlamaModelLoadFromFileFn, + pub llama_model_free: LlamaModelFreeFn, + pub llama_model_get_vocab: LlamaModelGetVocabFn, + pub llama_model_n_embd: LlamaModelNEmbdfn, + pub llama_model_n_head: LlamaModelNHeadFn, + pub llama_model_n_layer: LlamaModelNLayerFn, + pub llama_model_n_ctx: LlamaModelNCtxFn, + pub llama_model_n_vocab: LlamaModelNVocabFn, + pub llama_vocab_n_tokens: LlamaVocabNTokensFn, + pub llama_vocab_eos: LlamaVocabEosFn, + pub llama_context_default_params: LlamaContextDefaultParamsFn, + pub llama_init_from_model: LlamaInitFromModelFn, + pub llama_free: LlamaFreeFn, + pub llama_batch_init: LlamaBatchInitFn, + pub llama_batch_free: LlamaBatchFreeFn, + pub llama_decode: LlamaDecodeFn, + pub llama_get_embeddings: LlamaGetEmbeddingsFn, + pub llama_get_logits: LlamaGetLogitsFn, + pub llama_get_memory: LlamaGetMemoryFn, + pub llama_memory_clear: LlamaMemoryClearFn, + pub llama_memory_seq_rm: LlamaMemorySeqRmFn, + pub llama_memory_seq_pos_max: LlamaMemorySeqPosMaxFn, + pub llama_sampler_init_temp: LlamaSamplerInitTempFn, + pub llama_sampler_sample: LlamaSamplerSampleFn, + pub llama_sampler_free: LlamaSamplerFreeFn, + pub ggml_backend_load_all: GgmlBackendLoadAllFn, +} + +static FFI: std::sync::OnceLock = std::sync::OnceLock::new(); + +pub fn get_ffi() -> &'static LlamaFFI { + FFI.get_or_init(|| { + unsafe { + let runtime_path = std::env::current_dir().unwrap().join("runtime"); + let runtime_path_str = runtime_path.to_string_lossy(); + + let path_key = if cfg!(target_os = "windows") { + "PATH" + } else if cfg!(target_os = "macos") { + "DYLD_LIBRARY_PATH" + } else { + "LD_LIBRARY_PATH" + }; + + let path_var = std::env::var_os(path_key).unwrap_or_default(); + let mut paths: Vec<_> = std::env::split_paths(&path_var).collect(); + if !paths.contains(&runtime_path) { + paths.insert(0, runtime_path.clone()); + let new_path = std::env::join_paths(paths).unwrap(); + std::env::set_var(path_key, new_path); + println!(" [System] Added to {}: {}", path_key, runtime_path_str); + } + + #[cfg(target_os = "windows")] + { + use std::os::windows::ffi::OsStrExt; + let path_wide = std::ffi::OsStr::new(&runtime_path) + .encode_wide() + .chain(std::iter::once(0)) + .collect::>(); + winapi::um::winbase::SetDllDirectoryW(path_wide.as_ptr()); + println!(" [System] SetDllDirectoryW set to: {}", runtime_path_str); + } + + let (ggml_name, llama_name, libomp_name) = if cfg!(target_os = "windows") { + ("ggml.dll", "llama.dll", Some("libomp140.x86_64.dll")) + } else if cfg!(target_os = "macos") { + ("libggml.dylib", "libllama.dylib", None) + } else { + ("libggml.so", "libllama.so", None) + }; + + if let Some(omp_name) = libomp_name { + let libomp_path = runtime_path.join(omp_name); + let _libomp = libloading::Library::new(&libomp_path).ok(); + } + + ensure_runtime_library_link(&runtime_path, "libgomp.so.1"); + + let ggml_path = runtime_path.join(ggml_name); + let ggml_lib = libloading::Library::new(&ggml_path) + .map_err(|e| { + eprintln!( + "WARNING: Failed to load {} from {:?}: {}", + ggml_name, ggml_path, e + ) + }) + .ok(); + + let cpu_backend_name = if cfg!(target_arch = "x86_64") { + Some("libggml-cpu-x64.so") + } else if cfg!(target_arch = "aarch64") { + Some("libggml-cpu-arm64.so") + } else { + None + }; + + let cpu_backend_lib = cpu_backend_name + .and_then(|name| { + let cpu_backend_path = runtime_path.join(name); + match libloading::Library::new(&cpu_backend_path) { + Ok(lib) => Some(lib), + Err(e) => { + eprintln!( + "WARNING: Failed to load CPU backend {} from {:?}: {}", + name, cpu_backend_path, e + ); + None + } + } + }); + + #[cfg(target_os = "linux")] + { + if let Some(name) = cpu_backend_name { + let backend_path = runtime_path.join(name); + std::env::set_var("GGML_BACKEND_PATH", &backend_path); + println!(" [System] GGML_BACKEND_PATH set to: {}", backend_path.to_string_lossy()); + } + } + + let llama_path = runtime_path.join(llama_name); + let lib = libloading::Library::new(&llama_path) + .unwrap_or_else(|_| panic!("Failed to load {}. Please ensure it is in the runtime/ directory.", llama_name)); + + unsafe extern "C" fn dummy_fn() {} + + let load_all_fn: GgmlBackendLoadAllFn = if let Some(ref glib) = ggml_lib { + match glib.get::(b"ggml_backend_load_all") { + Ok(symbol) => *symbol, + Err(_) => dummy_fn, + } + } else { + lib.get::(b"ggml_backend_load_all") + .map(|s| *s) + .unwrap_or(dummy_fn) + }; + + let vulkan_path = runtime_path.join("libggml-vulkan.so"); + match libloading::Library::new(&vulkan_path) { + Ok(_) => println!(" [System] Verified: libggml-vulkan.so is loadable."), + Err(e) => eprintln!(" [System] WARNING: libggml-vulkan.so is NOT loadable: {}. This usually means missing Vulkan drivers or runtime.", e), + } + + let ffi = LlamaFFI { + llama_backend_init: *lib.get(b"llama_backend_init").expect("llama_backend_init"), + llama_backend_free: *lib.get(b"llama_backend_free").expect("llama_backend_free"), + llama_model_default_params: *lib + .get(b"llama_model_default_params") + .expect("llama_model_default_params"), + llama_model_load_from_file: *lib + .get(b"llama_model_load_from_file") + .expect("llama_model_load_from_file"), + llama_model_free: *lib.get(b"llama_model_free").expect("llama_model_free"), + llama_model_get_vocab: *lib + .get(b"llama_model_get_vocab") + .expect("llama_model_get_vocab"), + llama_model_n_embd: *lib.get(b"llama_model_n_embd").expect("llama_model_n_embd"), + llama_model_n_head: *lib.get(b"llama_model_n_head").expect("llama_model_n_head"), + llama_model_n_layer: *lib + .get(b"llama_model_n_layer") + .expect("llama_model_n_layer"), + llama_model_n_ctx: *lib.get(b"llama_n_ctx").expect("llama_n_ctx"), + llama_model_n_vocab: *lib.get(b"llama_n_vocab").expect("llama_n_vocab"), + llama_vocab_n_tokens: *lib + .get(b"llama_vocab_n_tokens") + .expect("llama_vocab_n_tokens"), + llama_vocab_eos: *lib.get(b"llama_vocab_eos").expect("llama_vocab_eos"), + llama_context_default_params: *lib + .get(b"llama_context_default_params") + .expect("llama_context_default_params"), + llama_init_from_model: *lib + .get(b"llama_init_from_model") + .expect("llama_init_from_model"), + llama_free: *lib.get(b"llama_free").expect("llama_free"), + llama_batch_init: *lib.get(b"llama_batch_init").expect("llama_batch_init"), + llama_batch_free: *lib.get(b"llama_batch_free").expect("llama_batch_free"), + llama_decode: *lib.get(b"llama_decode").expect("llama_decode"), + llama_get_embeddings: *lib + .get(b"llama_get_embeddings") + .expect("llama_get_embeddings"), + llama_get_logits: *lib.get(b"llama_get_logits").expect("llama_get_logits"), + llama_get_memory: *lib.get(b"llama_get_memory").expect("llama_get_memory"), + llama_memory_clear: *lib.get(b"llama_memory_clear").expect("llama_memory_clear"), + llama_memory_seq_rm: *lib + .get(b"llama_memory_seq_rm") + .expect("llama_memory_seq_rm"), + llama_memory_seq_pos_max: *lib + .get(b"llama_memory_seq_pos_max") + .expect("llama_memory_seq_pos_max"), + llama_sampler_init_temp: *lib + .get(b"llama_sampler_init_temp") + .expect("llama_sampler_init_temp"), + llama_sampler_sample: *lib + .get(b"llama_sampler_sample") + .expect("llama_sampler_sample"), + llama_sampler_free: *lib.get(b"llama_sampler_free").expect("llama_sampler_free"), + ggml_backend_load_all: load_all_fn, + }; + + let original_cwd = std::env::current_dir().ok(); + if original_cwd.is_some() { + let _ = std::env::set_current_dir(&runtime_path); + } + + (ffi.ggml_backend_load_all)(); + (ffi.llama_backend_init)(); + + if let Some(cwd) = original_cwd { + let _ = std::env::set_current_dir(cwd); + } + + std::mem::forget(lib); + if let Some(glib) = ggml_lib { + std::mem::forget(glib); + } + if let Some(cpu_backend_lib) = cpu_backend_lib { + std::mem::forget(cpu_backend_lib); + } + ffi + } + }) +} + +pub fn cleanup() { + if let Some(ffi) = FFI.get() { + unsafe { + (ffi.llama_backend_free)(); + } + } +} + +pub struct LlamaModel { + pub ptr: LlamaModelPtr, + pub vocab: LlamaVocabPtr, + pub n_embd: usize, + pub n_head: usize, + pub n_layer: usize, + pub n_ctx: usize, + pub n_vocab: usize, + pub eos_token: LlamaToken, +} + +unsafe impl Send for LlamaModel {} +unsafe impl Sync for LlamaModel {} + +impl LlamaModel { + pub fn load(path: &Path, n_gpu_layers: i32) -> Result { + let ffi = get_ffi(); + unsafe { + let mut params = (ffi.llama_model_default_params)(); + params.n_gpu_layers = n_gpu_layers; + let c_path = + std::ffi::CString::new(path.to_str().unwrap()).map_err(|e| e.to_string())?; + let ptr = (ffi.llama_model_load_from_file)(c_path.as_ptr(), params); + if ptr.is_null() { + return Err("Failed to load model".to_string()); + } + let vocab = (ffi.llama_model_get_vocab)(ptr); + let n_vocab = (ffi.llama_vocab_n_tokens)(vocab) as usize; + let n_embd = (ffi.llama_model_n_embd)(ptr) as usize; + let n_head = (ffi.llama_model_n_head)(ptr) as usize; + let n_layer = (ffi.llama_model_n_layer)(ptr) as usize; + let eos_token = (ffi.llama_vocab_eos)(vocab); + Ok(Self { + ptr, + vocab, + n_embd, + n_head, + n_layer, + n_ctx: 32768, + n_vocab, + eos_token, + }) + } + } +} +impl Drop for LlamaModel { + fn drop(&mut self) { + unsafe { + if let Some(ffi) = FFI.get() { + if !self.ptr.is_null() { + (ffi.llama_model_free)(self.ptr); + } + } + } + } +} +impl Clone for LlamaModel { + fn clone(&self) -> Self { + Self { + ptr: self.ptr, + vocab: self.vocab, + n_embd: self.n_embd, + n_head: self.n_head, + n_layer: self.n_layer, + n_ctx: self.n_ctx, + n_vocab: self.n_vocab, + eos_token: self.eos_token, + } + } +} + +pub struct LlamaContext { + pub ptr: LlamaContextPtr, + pub model: std::mem::ManuallyDrop, +} + +unsafe impl Send for LlamaContext {} +unsafe impl Sync for LlamaContext {} + +impl LlamaContext { + pub fn new( + model: &LlamaModel, + n_ctx: u32, + n_batch: u32, + embeddings: i32, + n_threads: i32, + ) -> Result { + let ffi = get_ffi(); + unsafe { + let mut params = (ffi.llama_context_default_params)(); + params.n_ctx = n_ctx; + params.n_batch = n_batch; + params.n_ubatch = 512; + params.n_seq_max = 1; + params.embeddings = embeddings != 0; + params.flash_attn_type = 1; + params.offload_kqv = true; + params.no_perf = true; + + if n_threads > 0 { + params.n_threads = n_threads; + } else { + let cpu_count = std::thread::available_parallelism() + .map(|p| p.get() as c_int) + .unwrap_or(4); + params.n_threads = (cpu_count / 2).min(4); + } + + let ptr = (ffi.llama_init_from_model)(model.ptr, params); + if ptr.is_null() { + return Err("Failed to create context".to_string()); + } + Ok(Self { + ptr, + model: std::mem::ManuallyDrop::new(model.clone()), + }) + } + } + pub fn decode(&mut self, batch: &mut LlamaBatch) -> Result<(), String> { + let ffi = get_ffi(); + unsafe { + let result = (ffi.llama_decode)(self.ptr, batch.batch); + if result != 0 { + return Err(format!("llama_decode failed: {}", result)); + } + Ok(()) + } + } + pub fn get_embeddings(&self) -> &[f32] { + let ffi = get_ffi(); + unsafe { + std::slice::from_raw_parts((ffi.llama_get_embeddings)(self.ptr), self.model.n_embd) + } + } + + pub fn get_embedding_at(&self, batch_index: usize) -> &[f32] { + let ffi = get_ffi(); + unsafe { + let base_ptr = (ffi.llama_get_embeddings)(self.ptr); + let offset = batch_index * self.model.n_embd; + std::slice::from_raw_parts(base_ptr.add(offset), self.model.n_embd) + } + } + pub fn get_logits(&self) -> &[f32] { + let ffi = get_ffi(); + unsafe { std::slice::from_raw_parts((ffi.llama_get_logits)(self.ptr), self.model.n_vocab) } + } + pub fn get_logits_ith(&self, i: usize) -> &[f32] { + let ffi = get_ffi(); + unsafe { + let base_ptr = (ffi.llama_get_logits)(self.ptr); + std::slice::from_raw_parts(base_ptr.add(i * self.model.n_vocab), self.model.n_vocab) + } + } + pub fn clear_kv_cache(&self) -> bool { + let ffi = get_ffi(); + unsafe { + let mem = (ffi.llama_get_memory)(self.ptr); + let result = (ffi.llama_memory_seq_rm)(mem, -1, 0, -1); + if !result { + eprintln!("WARNING: clear_kv_cache failed for ctx {:?}", self.ptr); + } + result + } + } + + pub fn debug_seq_pos_max(&self, seq_id: c_int) -> c_int { + let ffi = get_ffi(); + unsafe { + let mem = (ffi.llama_get_memory)(self.ptr); + let result = (ffi.llama_memory_seq_pos_max)(mem, seq_id); + eprintln!( + "DEBUG: [debug_seq_pos_max] mem={:?}, seq_id={}, result={}", + mem, seq_id, result + ); + result + } + } +} +impl Drop for LlamaContext { + fn drop(&mut self) { + unsafe { + if let Some(ffi) = FFI.get() { + if !self.ptr.is_null() { + (ffi.llama_free)(self.ptr); + } + } + } + } +} + +pub struct LlamaBatch { + batch: llama_batch, + n_tokens_max: usize, + n_embd: usize, + _n_pos_per_embd: usize, + _embd_buffer: Vec, + _pos_buffer: Vec, + _seq_id_buffers: Vec>, + _n_seq_id_buffer: Vec, + _logits_buffer: Vec, +} +impl LlamaBatch { + pub fn new( + n_tokens_max: usize, + n_embd: usize, + n_seq_max: usize, + n_pos_per_embd: usize, + ) -> Self { + let ffi = get_ffi(); + unsafe { + let batch = + (ffi.llama_batch_init)(n_tokens_max as c_int, n_embd as c_int, n_seq_max as c_int); + + Self { + batch, + n_tokens_max, + n_embd, + _n_pos_per_embd: n_pos_per_embd, + _embd_buffer: Vec::new(), + _pos_buffer: Vec::new(), + _seq_id_buffers: Vec::new(), + _n_seq_id_buffer: Vec::new(), + _logits_buffer: Vec::new(), + } + } + } + + pub fn set_embd(&mut self, prompt_embeds: &[f32], pos_arr: &[i32], seq_id: i32) { + let n_tokens = prompt_embeds.len() / self.n_embd; + unsafe { + std::ptr::copy_nonoverlapping( + prompt_embeds.as_ptr(), + self.batch.embd, + prompt_embeds.len(), + ); + + let max_pos = self.n_tokens_max; + + if pos_arr.len() > max_pos { + eprintln!( + "WARNING: pos_arr length {} exceeds batch capacity {}. Truncating!", + pos_arr.len(), + max_pos + ); + } + std::ptr::copy_nonoverlapping( + pos_arr.as_ptr(), + self.batch.pos, + pos_arr.len().min(max_pos), + ); + } + + for i in 0..n_tokens { + unsafe { + *self.batch.n_seq_id.add(i) = 1; + + let seq_ids = *self.batch.seq_id.add(i); + *seq_ids.add(0) = seq_id; + + *self.batch.logits.add(i) = if i == n_tokens - 1 { 1 } else { 0 }; + } + } + self.batch.n_tokens = n_tokens as c_int; + } + pub fn clear(&mut self) { + self.batch.n_tokens = 0; + } + pub fn n_tokens(&self) -> usize { + self.batch.n_tokens as usize + } + pub fn batch_ptr(&mut self) -> *mut llama_batch { + &mut self.batch + } +} + +pub struct LlamaSampler { + _ptr: LlamaSamplerPtr, + n_vocab: usize, + _neg_inf: f32, + temperature: f32, + top_k: usize, + top_p: f32, + min_p: f32, + repeat_penalty: f32, + frequency_penalty: f32, + presence_penalty: f32, + penalty_last_n: usize, + token_history: std::cell::RefCell>, + rng: std::cell::RefCell, +} +impl LlamaSampler { + pub fn new(n_vocab: usize, temperature: f32, top_k: i32, top_p: f32, seed: u64) -> Self { + use rand::SeedableRng; + Self { + _ptr: std::ptr::null_mut(), + n_vocab, + _neg_inf: -1e9, + temperature, + top_k: top_k as usize, + top_p, + min_p: 0.0, + repeat_penalty: 1.0, + frequency_penalty: 0.0, + presence_penalty: 0.0, + penalty_last_n: 64, + token_history: std::cell::RefCell::new(Vec::new()), + rng: std::cell::RefCell::new(rand::rngs::StdRng::seed_from_u64(seed)), + } + } + + pub fn greedy(n_vocab: usize) -> Self { + use rand::SeedableRng; + Self { + _ptr: std::ptr::null_mut(), + n_vocab, + _neg_inf: -1e9, + temperature: 0.0, + top_k: 0, + top_p: 1.0, + min_p: 0.0, + repeat_penalty: 1.0, + frequency_penalty: 0.0, + presence_penalty: 0.0, + penalty_last_n: 64, + token_history: std::cell::RefCell::new(Vec::new()), + rng: std::cell::RefCell::new(rand::rngs::StdRng::seed_from_u64(42)), + } + } + + pub fn with_penalties( + mut self, + min_p: f32, + repeat_penalty: f32, + frequency_penalty: f32, + presence_penalty: f32, + penalty_last_n: usize, + ) -> Self { + self.min_p = min_p; + self.repeat_penalty = repeat_penalty; + self.frequency_penalty = frequency_penalty; + self.presence_penalty = presence_penalty; + self.penalty_last_n = penalty_last_n; + self + } + + pub fn accept(&self, token: LlamaToken) { + let mut history = self.token_history.borrow_mut(); + history.push(token); + if history.len() > self.penalty_last_n { + let excess = history.len() - self.penalty_last_n; + history.drain(0..excess); + } + } + + fn apply_penalties(&self, logits: &mut [f32]) { + if self.repeat_penalty == 1.0 + && self.frequency_penalty == 0.0 + && self.presence_penalty == 0.0 + { + return; + } + + let history = self.token_history.borrow(); + let mut token_counts: std::collections::HashMap = + std::collections::HashMap::new(); + + for &token in history.iter() { + *token_counts.entry(token).or_insert(0) += 1; + } + + // 惩罚豁免名单:EOS(2150)、PAD(2148)、BOS(2149)、TTS_EOS(151673) + let penalty_exempt: std::collections::HashSet = + [2150, 2148, 2149, 151673].iter().cloned().collect(); + + for (&token, &count) in token_counts.iter() { + // 跳过豁免名单中的 token + if penalty_exempt.contains(&token) { + continue; + } + + let idx = token as usize; + if idx < logits.len() { + if self.repeat_penalty != 1.0 { + if logits[idx] > 0.0 { + logits[idx] /= self.repeat_penalty; + } else { + logits[idx] *= self.repeat_penalty; + } + } + logits[idx] -= self.frequency_penalty * count as f32; + logits[idx] -= self.presence_penalty; + } + } + } + + fn apply_min_p(&self, probs: &mut Vec<(usize, f32)>) { + if self.min_p <= 0.0 || probs.is_empty() { + return; + } + + let max_prob = probs.iter().map(|(_, p)| *p).fold(0.0, f32::max); + let threshold = max_prob * self.min_p; + + probs.retain(|(_, p)| *p >= threshold); + } + + pub fn sample( + &self, + ctx: &LlamaContext, + idx: i32, + limit_start: Option, + limit_end: Option, + ) -> LlamaToken { + self.sample_with_allow(ctx, idx, limit_start, limit_end, None) + } + + pub fn sample_with_allow( + &self, + ctx: &LlamaContext, + idx: i32, + limit_start: Option, + limit_end: Option, + allow_tokens: Option<&[LlamaToken]>, + ) -> LlamaToken { + let ffi = get_ffi(); + unsafe { + let offset = if idx >= 0 { idx as usize } else { 0 }; + let base_ptr = (ffi.llama_get_logits)(ctx.ptr); + let logits_ptr = base_ptr.add(offset * self.n_vocab); + + let logits_raw = std::slice::from_raw_parts(logits_ptr, self.n_vocab); + let mut logits: Vec = logits_raw.to_vec(); + + let start = limit_start.unwrap_or(0); + let end = limit_end.unwrap_or(self.n_vocab).min(self.n_vocab); + + let mut mask = vec![true; self.n_vocab]; + for m in mask.iter_mut().take(end).skip(start) { + *m = false; + } + if let Some(allow) = allow_tokens { + for &token in allow { + let t = token as usize; + if t < self.n_vocab { + mask[t] = false; + } + } + } + for (i, &m) in mask.iter().enumerate() { + if m { + logits[i] = self._neg_inf; + } + } + + self.apply_penalties(&mut logits); + + if self.temperature <= 0.0 { + let mut max_val = f32::NEG_INFINITY; + let mut max_idx = 0; + + for (i, &val) in logits.iter().enumerate() { + if val > max_val { + max_val = val; + max_idx = i; + } + } + self.accept(max_idx as LlamaToken); + return max_idx as LlamaToken; + } + + let mut candidates: Vec<(usize, f32)> = logits + .iter() + .enumerate() + .filter(|(_, &v)| v > f32::NEG_INFINITY / 2.0) + .map(|(i, &v)| (i, v)) + .collect(); + + candidates.sort_by(|a, b| b.1.partial_cmp(&a.1).unwrap_or(std::cmp::Ordering::Equal)); + + if self.top_k > 0 && self.top_k < candidates.len() { + candidates.truncate(self.top_k); + } + + let max_logit = candidates.first().map(|(_, l)| *l).unwrap_or(0.0); + let mut probs: Vec<(usize, f32)> = candidates + .iter() + .map(|(idx, logit)| { + let scaled = (*logit - max_logit) / self.temperature; + (*idx, scaled.exp()) + }) + .collect(); + + let sum: f32 = probs.iter().map(|(_, p)| *p).sum(); + if sum > 0.0 { + for (_, p) in probs.iter_mut() { + *p /= sum; + } + } + + self.apply_min_p(&mut probs); + + if self.top_p < 1.0 { + let mut cumsum = 0.0; + let mut cutoff_idx = probs.len(); + for (i, (_, p)) in probs.iter().enumerate() { + cumsum += p; + if cumsum >= self.top_p { + cutoff_idx = i + 1; + break; + } + } + probs.truncate(cutoff_idx); + + let new_sum: f32 = probs.iter().map(|(_, p)| *p).sum(); + if new_sum > 0.0 { + for (_, p) in probs.iter_mut() { + *p /= new_sum; + } + } + } + + use rand::Rng; + let r: f32 = self.rng.borrow_mut().gen(); + let mut cumsum = 0.0; + for (idx, p) in probs.iter() { + cumsum += p; + if r < cumsum { + self.accept(*idx as LlamaToken); + return *idx as LlamaToken; + } + } + + let result = probs + .first() + .map(|(idx, _)| *idx as LlamaToken) + .unwrap_or(start as LlamaToken); + self.accept(result); + result + } + } + + /// 采样时对静音 token 施加惩罚 + /// silent_penalty: 静音惩罚系数(0-1),降低静音 token 的概率 + /// silent_threshold: 静音 token 的阈值(code_0 < silent_threshold 被视为静音) + pub fn sample_with_silent_penalty( + &self, + ctx: &LlamaContext, + idx: i32, + limit_start: Option, + limit_end: Option, + allow_tokens: Option<&[LlamaToken]>, + silent_penalty: f32, + silent_threshold: usize, + ) -> LlamaToken { + let ffi = get_ffi(); + unsafe { + let offset = if idx >= 0 { idx as usize } else { 0 }; + let base_ptr = (ffi.llama_get_logits)(ctx.ptr); + let logits_ptr = base_ptr.add(offset * self.n_vocab); + + let logits_raw = std::slice::from_raw_parts(logits_ptr, self.n_vocab); + let mut logits: Vec = logits_raw.to_vec(); + + let start = limit_start.unwrap_or(0); + let end = limit_end.unwrap_or(self.n_vocab).min(self.n_vocab); + + // 创建掩码 + let mut mask = vec![true; self.n_vocab]; + for m in mask.iter_mut().take(end).skip(start) { + *m = false; + } + if let Some(allow) = allow_tokens { + for &token in allow { + let t = token as usize; + if t < self.n_vocab { + mask[t] = false; + } + } + } + for (i, &m) in mask.iter().enumerate() { + if m { + logits[i] = self._neg_inf; + } + } + + // 对静音 token 施加惩罚(降低 logits) + if silent_penalty > 0.0 { + for i in 0..silent_threshold.min(end) { + if !mask[i] { + logits[i] -= silent_penalty; + } + } + } + + self.apply_penalties(&mut logits); + + if self.temperature <= 0.0 { + let mut max_val = f32::NEG_INFINITY; + let mut max_idx = 0; + + for (i, &val) in logits.iter().enumerate() { + if val > max_val { + max_val = val; + max_idx = i; + } + } + self.accept(max_idx as LlamaToken); + return max_idx as LlamaToken; + } + + let mut candidates: Vec<(usize, f32)> = logits + .iter() + .enumerate() + .filter(|(_, &v)| v > f32::NEG_INFINITY / 2.0) + .map(|(i, &v)| (i, v)) + .collect(); + + candidates.sort_by(|a, b| b.1.partial_cmp(&a.1).unwrap_or(std::cmp::Ordering::Equal)); + + if self.top_k > 0 && self.top_k < candidates.len() { + candidates.truncate(self.top_k); + } + + let max_logit = candidates.first().map(|(_, l)| *l).unwrap_or(0.0); + let mut probs: Vec<(usize, f32)> = candidates + .iter() + .map(|(idx, logit)| { + let scaled = (*logit - max_logit) / self.temperature; + (*idx, scaled.exp()) + }) + .collect(); + + let sum: f32 = probs.iter().map(|(_, p)| *p).sum(); + if sum > 0.0 { + for (_, p) in probs.iter_mut() { + *p /= sum; + } + } + + self.apply_min_p(&mut probs); + + if self.top_p < 1.0 { + let mut cumsum = 0.0; + let mut cutoff_idx = probs.len(); + for (i, (_, p)) in probs.iter().enumerate() { + cumsum += p; + if cumsum > self.top_p { + cutoff_idx = i + 1; + break; + } + } + probs.truncate(cutoff_idx); + } + + use rand::Rng; + let r: f32 = self.rng.borrow_mut().gen(); + let mut cumsum = 0.0; + for (idx, p) in probs.iter() { + cumsum += p; + if r < cumsum { + self.accept(*idx as LlamaToken); + return *idx as LlamaToken; + } + } + + let result = probs + .first() + .map(|(idx, _)| *idx as LlamaToken) + .unwrap_or(start as LlamaToken); + self.accept(result); + result + } + } +} +impl Drop for LlamaSampler { + fn drop(&mut self) {} +} diff --git a/src/models/mod.rs b/src/models/mod.rs new file mode 100644 index 0000000..09a7694 --- /dev/null +++ b/src/models/mod.rs @@ -0,0 +1,2 @@ +pub mod llama; +pub mod onnx; diff --git a/src/models/onnx.rs b/src/models/onnx.rs new file mode 100644 index 0000000..319734a --- /dev/null +++ b/src/models/onnx.rs @@ -0,0 +1,559 @@ +//! 真正的 ONNX 模型推理实现 +//! 使用 ort crate 进行 ONNX Runtime 推理 +//! 执行提供者: DirectML (Windows GPU) + +use ndarray::{Array3, Array4}; +use ort::session::builder::GraphOptimizationLevel; +use ort::session::Session; +use ort::session::SessionInputValue; +use ort::value::Tensor; +use std::error::Error; + +/// 创建 CPU Session (fallback) +fn create_cpu_session(model_path: &str) -> Result> { + println!(" [ONNX] Requesting Execution Providers: CPU"); + let builder = Session::builder()?; + println!(" [ONNX] CPU Session Builder created."); + + let builder = builder.with_optimization_level(GraphOptimizationLevel::Level3)?; + + let cpu = ort::execution_providers::CPUExecutionProvider::default().build(); + let mut builder = builder.with_execution_providers([cpu])?; + println!(" [ONNX] CPU Provider configured."); + + let session = builder.commit_from_file(model_path)?; + println!(" [ONNX] CPU Session committed."); + + Ok(session) +} + +/// 创建 GPU Session (使用 DirectML) +#[cfg(windows)] +fn create_gpu_session(model_path: &str) -> Result> { + println!(" [ONNX] Requesting Execution Providers: DirectML"); + let builder = Session::builder()?; + + let builder = builder.with_optimization_level(GraphOptimizationLevel::Level3)?; + + let dml = DirectMLExecutionProvider::default().build(); + + match builder.with_execution_providers([dml]) { + Ok(builder) => { + println!(" [ONNX] DirectML Provider configured."); + let session = builder.commit_from_file(model_path)?; + println!(" [ONNX] DirectML Session committed."); + Ok(session) + } + Err(e) => { + println!(" [ONNX] DirectML failed: {:?}, falling back to CPU.", e); + create_cpu_session(model_path) + } + } +} + +/// 打印当前使用的执行提供者信息 +fn print_session_info(session: &Session, name: &str) { + let inputs: Vec<_> = session + .inputs() + .iter() + .map(|i| i.name().to_string()) + .collect(); + let outputs: Vec<_> = session + .outputs() + .iter() + .map(|o| o.name().to_string()) + .collect(); + println!(" Inputs: {:?}", inputs); + println!(" Outputs: {:?}", outputs); + println!(" [ONNX] {}: Loaded successfully", name); +} + +/// 音频编码器 - 将 24kHz 音频编码为 codec codes +pub struct AudioEncoder { + session: Session, +} + +impl AudioEncoder { + pub fn load(model_path: &str) -> Result> { + println!(" [ONNX] AudioEncoder: Loading {}", model_path); + + // Windows 上尝试使用 DirectML/CUDA 加速 + #[cfg(windows)] + let session = create_gpu_session(model_path)?; + + #[cfg(not(windows))] + let session = create_cpu_session(model_path)?; + + print_session_info(&session, "AudioEncoder"); + + Ok(AudioEncoder { session }) + } + + pub fn encode(&mut self, audio: &[f32]) -> Result, Box> { + println!(" [ONNX] AudioEncoder: Encoding {} samples", audio.len()); + + // 使用 (shape, data) 形式创建 Tensor + let shape = vec![1i64, audio.len() as i64]; + let input_tensor = Tensor::from_array((shape, audio.to_vec()))?; + + let outputs = self + .session + .run(ort::inputs!["input_values" => input_tensor])?; + + // 输出: audio_codes [1, T//2000, 16] + let codes_output = &outputs["audio_codes"]; + let codes_raw = codes_output.try_extract_tensor::()?; + println!(" [ONNX] AudioEncoder: Output Shape: {:?}", codes_raw.0); + let codes: Vec = codes_raw.1.to_vec(); + + let n_frames = codes.len() / 16; + println!( + " [ONNX] AudioEncoder: Encoded {} frames, {} codes", + n_frames, + codes.len() + ); + Ok(codes) + } +} + +/// 说话人编码器 - 提取说话人嵌入 +pub struct SpeakerEncoder { + session: Session, +} + +impl SpeakerEncoder { + pub fn load(model_path: &str) -> Result> { + println!(" [ONNX] SpeakerEncoder: Loading {}", model_path); + + // Windows 上尝试使用 DirectML/CUDA 加速 + #[cfg(windows)] + let session = create_gpu_session(model_path)?; + + #[cfg(not(windows))] + let session = create_cpu_session(model_path)?; + + print_session_info(&session, "SpeakerEncoder"); + + Ok(SpeakerEncoder { session }) + } + + pub fn encode(&mut self, audio: &[f32]) -> Result, Box> { + println!( + " [ONNX] SpeakerEncoder: Extracting from {} samples", + audio.len() + ); + + // 计算 Mel 谱图 (简化版) + let (n_frames, mels_data) = self.compute_mel(audio); + let shape = vec![1i64, n_frames as i64, 128i64]; + let mels_tensor = Tensor::from_array((shape, mels_data))?; + + let outputs = self.session.run(ort::inputs!["mels" => mels_tensor])?; + + // 输出: spk_emb [1, 2048] + let emb_output = &outputs["spk_emb"]; + let emb_raw = emb_output.try_extract_tensor::()?; + let emb: Vec = emb_raw.1.to_vec(); + + println!( + " [ONNX] SpeakerEncoder: Extracted {} dims embedding", + emb.len() + ); + Ok(emb) + } + + /// 计算 Mel 谱图 (手动实现,完全对齐 Python librosa) + /// 参数: 24kHz, n_fft=1024, hop=256, n_mels=128, fmin=0, fmax=12000 + fn compute_mel(&self, audio: &[f32]) -> (usize, Vec) { + use rustfft::{num_complex::Complex, FftPlanner}; + + const SAMPLE_RATE: f32 = 24000.0; + const N_FFT: usize = 1024; + const HOP_LENGTH: usize = 256; + const N_MELS: usize = 128; + const FMIN: f32 = 0.0; + const FMAX: f32 = 12000.0; + + // ==================== 1. Mel Filterbank (Slaney style) ==================== + + // Hz to Mel (Slaney formula) + fn hz_to_mel(freq: f32) -> f32 { + let f_min = 0.0f32; + let f_sp = 200.0 / 3.0; + let min_log_hz = 1000.0f32; + let min_log_mel = (min_log_hz - f_min) / f_sp; + let logstep = 6.4f32.ln() / 27.0; + + if freq >= min_log_hz { + min_log_mel + ((freq / min_log_hz).ln() / logstep) + } else { + (freq - f_min) / f_sp + } + } + + // Mel to Hz (Slaney formula) + fn mel_to_hz(mel: f32) -> f32 { + let f_min = 0.0f32; + let f_sp = 200.0 / 3.0; + let min_log_hz = 1000.0f32; + let min_log_mel = (min_log_hz - f_min) / f_sp; + let logstep = 6.4f32.ln() / 27.0; + + if mel >= min_log_mel { + min_log_hz * (logstep * (mel - min_log_mel)).exp() + } else { + f_min + f_sp * mel + } + } + + // Create Mel filterbank (Slaney normalization) + let n_fft_bins = N_FFT / 2 + 1; + let mel_min = hz_to_mel(FMIN); + let mel_max = hz_to_mel(FMAX); + + // Mel bin edges + let mut mel_edges = Vec::with_capacity(N_MELS + 2); + for i in 0..=(N_MELS + 1) { + let mel = mel_min + (mel_max - mel_min) * (i as f32) / ((N_MELS + 1) as f32); + mel_edges.push(mel_to_hz(mel)); + } + + // FFT bin frequencies + let fft_freqs: Vec = (0..n_fft_bins) + .map(|i| (i as f32) * SAMPLE_RATE / (N_FFT as f32)) + .collect(); + + // Build filterbank matrix [n_mels, n_fft_bins] + let mut mel_filterbank = vec![0.0f32; N_MELS * n_fft_bins]; + for m in 0..N_MELS { + let f_left = mel_edges[m]; + let f_center = mel_edges[m + 1]; + let f_right = mel_edges[m + 2]; + + // Slaney-style normalization: 2.0 / (f_right - f_left) + let norm = 2.0 / (f_right - f_left); + + for (k, &freq) in fft_freqs.iter().enumerate() { + let weight = if freq >= f_left && freq <= f_center { + (freq - f_left) / (f_center - f_left) + } else if freq > f_center && freq <= f_right { + (f_right - freq) / (f_right - f_center) + } else { + 0.0 + }; + mel_filterbank[m * n_fft_bins + k] = weight * norm; + } + } + + // ==================== 2. STFT ==================== + + // Reflect padding + let padding = (N_FFT - HOP_LENGTH) / 2; + let mut padded: Vec = Vec::with_capacity(padding + audio.len() + padding); + + // Reflect at start + for i in (1..=padding).rev() { + if i < audio.len() { + padded.push(audio[i]); + } else { + padded.push(0.0); + } + } + padded.extend_from_slice(audio); + // Reflect at end + for i in 1..=padding { + let idx = audio.len().saturating_sub(1 + i); + if idx < audio.len() { + padded.push(audio[idx]); + } else { + padded.push(0.0); + } + } + + // Hann window + let hann_window: Vec = (0..N_FFT) + .map(|i| 0.5 * (1.0 - (2.0 * std::f32::consts::PI * i as f32 / N_FFT as f32).cos())) + .collect(); + + // FFT planner + let mut planner = FftPlanner::::new(); + let fft = planner.plan_fft_forward(N_FFT); + + // Process frames + let n_frames = (padded.len().saturating_sub(N_FFT)) / HOP_LENGTH + 1; + let mut all_mels = Vec::with_capacity(n_frames * N_MELS); + + for frame_idx in 0..n_frames { + let start = frame_idx * HOP_LENGTH; + if start + N_FFT > padded.len() { + break; + } + + // Apply window and convert to complex + let mut fft_buffer: Vec> = (0..N_FFT) + .map(|i| Complex::new(padded[start + i] * hann_window[i], 0.0)) + .collect(); + + // Perform FFT + fft.process(&mut fft_buffer); + + // Compute magnitudes (add 1e-9 for numerical stability, like Python) + let magnitudes: Vec = fft_buffer[..n_fft_bins] + .iter() + .map(|c| (c.norm_sqr() + 1e-9).sqrt()) + .collect(); + + // Apply Mel filterbank + for m in 0..N_MELS { + let mut mel_val = 0.0f32; + for k in 0..n_fft_bins { + mel_val += mel_filterbank[m * n_fft_bins + k] * magnitudes[k]; + } + // Log compression: log(max(mel, 1e-5)) + let log_mel = mel_val.max(1e-5).ln(); + all_mels.push(log_mel); + } + } + + let actual_n_frames = all_mels.len() / N_MELS; + (actual_n_frames, all_mels) + } +} + +/// 音频解码器 - 将 codec codes 解码为音频波形 +pub struct AudioDecoder { + session: Session, +} + +impl AudioDecoder { + pub fn load(model_path: &str) -> Result> { + println!(" [ONNX] AudioDecoder: Loading {}", model_path); + + // Windows 上尝试使用 DirectML 加速 + #[cfg(windows)] + let session = create_gpu_session(model_path)?; + + #[cfg(not(windows))] + let session = create_cpu_session(model_path)?; + + print_session_info(&session, "AudioDecoder"); + + Ok(AudioDecoder { session }) + } + + pub fn create_state() -> DecoderState { + DecoderState::new() + } + + pub fn decode( + &mut self, + codes: &[i64], + state: &mut DecoderState, + is_final: bool, + ) -> Result, Box> { + let n_frames = codes.len() / 16; + + // 如果没有帧且不是 is_final,直接返回空 + if n_frames == 0 && !is_final { + return Ok(vec![]); + } + + // 1. Prepare Inputs + let mut inputs_vec: Vec<(std::borrow::Cow<'_, str>, SessionInputValue<'_>)> = Vec::new(); + + // audio_codes: [1, N, 16] (N can be 0 for flushing) + let codes_shape = vec![1i64, n_frames as i64, 16i64]; + let codes_tensor = Tensor::from_array((codes_shape, codes.to_vec()))?; + inputs_vec.push(("audio_codes".into(), codes_tensor.into())); + + // is_last: [1] + let is_last_val = if is_final { 1.0f32 } else { 0.0f32 }; + let is_last_tensor = Tensor::from_array((vec![1i64], vec![is_last_val]))?; + inputs_vec.push(("is_last".into(), is_last_tensor.into())); + + // State Tensors + let pre_conv_tensor = Tensor::from_array(state.pre_conv_history.clone().into_dyn())?; + inputs_vec.push(("pre_conv_history".into(), pre_conv_tensor.into())); + + let latent_tensor = Tensor::from_array(state.latent_buffer.clone().into_dyn())?; + inputs_vec.push(("latent_buffer".into(), latent_tensor.into())); + + let conv_tensor = Tensor::from_array(state.conv_history.clone().into_dyn())?; + inputs_vec.push(("conv_history".into(), conv_tensor.into())); + + // KV Cache + for (i, (k, v)) in state.kv_cache.iter().enumerate() { + let k_tensor = Tensor::from_array(k.clone().into_dyn())?; + let v_tensor = Tensor::from_array(v.clone().into_dyn())?; + inputs_vec.push((format!("past_key_{}", i).into(), k_tensor.into())); + inputs_vec.push((format!("past_value_{}", i).into(), v_tensor.into())); + } + + // 2. Run Session + let outputs = self.session.run(inputs_vec)?; + + // 3. Extract Audio + let wav_output = &outputs["final_wav"]; + let wav_raw = wav_output.try_extract_tensor::()?; + // If outputs["valid_samples"] exists, use it. Python says: outputs[1] is valid_samples. + // Let's check output names in Python: final_wav, valid_samples, pre_conv_new, ... + // We assume safe to retrieve by name. + + // Handling valid_samples which might be scalar or 1D + let valid_count = if let Some(valid_out) = outputs.get("valid_samples") { + let valid_raw = valid_out.try_extract_tensor::()?; + valid_raw.1[0] as usize + } else { + wav_raw.1.len() + }; + + let audio: Vec = wav_raw.1.iter().take(valid_count).cloned().collect(); + + // 4. Update State (only if not final? Python says "if is_final, state might be dirty but unused") + // We update unconditionally to match Python logic which returns new_state. + + let extract_3d = |name: &str| -> Result, Box> { + let out = &outputs[name]; + let raw = out.try_extract_tensor::()?; + let shape = raw.0; // &[usize] or similar + // Convert shape slices/vecs to exact dimensional array construction + // ort 2.0 API might handle shape differently. output shape is typically dynamic. + // We assume dimension correctness from model. + // ndarray::Array::from_shape_vec is simplest if we know dimensions. + // But dimensions change. We use from_iter with shape. + let shape_ix: (usize, usize, usize) = + (shape[0] as usize, shape[1] as usize, shape[2] as usize); + Ok(Array3::from_shape_vec(shape_ix, raw.1.to_vec())?) + }; + + state.pre_conv_history = extract_3d("next_pre_conv_history")?; + state.latent_buffer = extract_3d("next_latent_buffer")?; + state.conv_history = extract_3d("next_conv_history")?; + + // Update KV Cache + // Names: next_key_0, next_value_0... + for i in 0..8 { + let k_name = format!("next_key_{}", i); + let v_name = format!("next_value_{}", i); + + let out_k = &outputs[k_name.as_str()]; + let raw_k = out_k.try_extract_tensor::()?; + let shape_k = ( + raw_k.0[0] as usize, + raw_k.0[1] as usize, + raw_k.0[2] as usize, + raw_k.0[3] as usize, + ); + let arr_k = Array4::from_shape_vec(shape_k, raw_k.1.to_vec())?; + + let out_v = &outputs[v_name.as_str()]; + let raw_v = out_v.try_extract_tensor::()?; + let shape_v = ( + raw_v.0[0] as usize, + raw_v.0[1] as usize, + raw_v.0[2] as usize, + raw_v.0[3] as usize, + ); + let arr_v = Array4::from_shape_vec(shape_v, raw_v.1.to_vec())?; + + state.kv_cache[i] = (arr_k, arr_v); + } + + Ok(audio) + } +} + +pub struct DecoderState { + pub pre_conv_history: Array3, + pub latent_buffer: Array3, + pub conv_history: Array3, + pub kv_cache: Vec<(Array4, Array4)>, +} + +impl Default for DecoderState { + fn default() -> Self { + Self::new() + } +} + +impl DecoderState { + pub fn new() -> Self { + // Match Python: np.zeros((1, 512, 0)) etc. + let pre_conv_history = Array3::::zeros((1, 512, 0)); + let latent_buffer = Array3::::zeros((1, 1024, 0)); + let conv_history = Array3::::zeros((1, 1024, 0)); + + let mut kv_cache = Vec::with_capacity(8); + for _ in 0..8 { + // [1, 16, 0, 64] + let k = Array4::::zeros((1, 16, 0, 64)); + let v = Array4::::zeros((1, 16, 0, 64)); + kv_cache.push((k, v)); + } + + DecoderState { + pre_conv_history, + latent_buffer, + conv_history, + kv_cache, + } + } +} + +// 兼容性保留 +#[derive(Clone)] +pub struct CodecEmbeddings { + pub weights: Vec>, + pub bias: Vec, +} + +impl CodecEmbeddings { + pub fn load_npz(_path: &str) -> Result> { + Ok(CodecEmbeddings { + weights: Vec::new(), + bias: Vec::new(), + }) + } +} + +pub fn init_onruntime() -> Result<(), Box> { + use std::path::PathBuf; + + let (dll_name, providers_dll_name) = if cfg!(windows) { + ("onnxruntime.dll", "onnxruntime_providers_shared.dll") + } else if cfg!(target_os = "macos") { + ( + "libonnxruntime.dylib", + "libonnxruntime_providers_shared.dylib", + ) + } else { + ("libonnxruntime.so", "libonnxruntime_providers_shared.so") + }; + + let runtime_dir = PathBuf::from("runtime"); + let dll_path = runtime_dir.join(dll_name); + + if !dll_path.exists() { + return Err(format!("ONNX Runtime DLL not found at: {}", dll_path.display()).into()); + } + + let providers_path = runtime_dir.join(providers_dll_name); + if providers_path.exists() { + std::env::set_var("ORT_DYLIB_PATH", &dll_path); + } + + println!(" [ONNX] Loading ONNX Runtime from: {}", dll_path.display()); + + let env_builder = + ort::init_from(&dll_path).map_err(|e| format!("Failed to load ONNX Runtime DLL: {}", e))?; + + let committed = env_builder.with_name("Qwen3TTS").commit(); + + if !committed { + return Err("Failed to commit ONNX Runtime environment".into()); + } + + println!(" [ONNX] ONNX Runtime initialized successfully."); + + Ok(()) +} diff --git a/src/models/onnx_runtime.rs b/src/models/onnx_runtime.rs new file mode 100644 index 0000000..0576cab --- /dev/null +++ b/src/models/onnx_runtime.rs @@ -0,0 +1,533 @@ +use libloading::{Library, Symbol}; +use std::error::Error; +use std::ffi::{CStr, CString}; +use std::fmt; +use std::os::raw::{c_char, c_int, c_void}; +use std::path::Path; +use std::ptr::null_mut; + +type OrtApiBasePtr = *mut c_void; +type OrtGetApiBaseFn = unsafe extern "C" fn() -> OrtApiBasePtr; +type OrtApiPtr = *mut c_void; +type OrtGetApiFn = unsafe extern "C" fn(u32) -> OrtApiPtr; +type OrtStatusPtr = *mut c_void; +type OrtEnvPtr = *mut c_void; +type OrtSessionPtr = *mut c_void; +type OrtSessionOptionsPtr = *mut c_void; +type OrtMemoryInfoPtr = *mut c_void; +type OrtTensorPtr = *mut c_void; +type OrtValuePtr = *mut c_void; +type OrtAllocatorPtr = *mut c_void; +type OrtRunOptionsPtr = *mut c_void; + +pub struct OrtApi; +pub struct OrtEnv; +pub struct OrtSession; +pub struct OrtSessionOptions; +pub struct OrtMemoryInfo; +pub struct OrtAllocator; +pub struct OrtValue; +pub struct OrtRunOptions; + +#[derive(Debug)] +pub struct OnnxRuntimeError(String); + +impl fmt::Display for OnnxRuntimeError { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "ONNX Runtime Error: {}", self.0) + } +} + +impl Error for OnnxRuntimeError {} + +pub struct OnnxRuntime { + lib: Library, + get_api_base: Symbol, + get_api: Symbol, + create_env: Symbol OrtStatusPtr>, + release_env: Symbol, + create_session_options: Symbol OrtStatusPtr>, + release_session_options: Symbol, + set_gpu_mem_limit: Symbol OrtStatusPtr>, + create_session: Symbol< + unsafe extern "C" fn( + *const c_char, + *mut c_void, + *mut c_void, + *mut *mut c_void, + ) -> OrtStatusPtr, + >, + release_session: Symbol, + get_input_count: Symbol OrtStatusPtr>, + get_output_count: Symbol OrtStatusPtr>, + get_input_name: Symbol< + unsafe extern "C" fn(*mut c_void, c_int, *mut c_void, *mut *mut c_void) -> OrtStatusPtr, + >, + get_output_name: Symbol< + unsafe extern "C" fn(*mut c_void, c_int, *mut c_void, *mut *mut c_void) -> OrtStatusPtr, + >, + release_allocator: Symbol, + create_memory_info: Symbol< + unsafe extern "C" fn( + *mut *mut c_void, + *mut *mut c_void, + usize, + c_int, + c_int, + ) -> OrtStatusPtr, + >, + release_memory_info: Symbol, + create_tensor_with_data: Symbol< + unsafe extern "C" fn( + *mut *mut c_void, + *const c_void, + usize, + *mut c_void, + c_int, + *mut *mut c_void, + ) -> OrtStatusPtr, + >, + get_tensor_type: Symbol OrtStatusPtr>, + release_value: Symbol, + run: Symbol< + unsafe extern "C" fn( + *mut c_void, + *mut c_void, + *const *const c_char, + *const *mut c_void, + c_int, + *mut *mut c_void, + ) -> OrtStatusPtr, + >, + get_tensor_shape: + Symbol OrtStatusPtr>, + get_string_tensor_data: + Symbol OrtStatusPtr>, + get_string_tensor_data_length: + Symbol OrtStatusPtr>, + get_allocator_with_default_options: + Symbol OrtStatusPtr>, +} + +impl OnnxRuntime { + fn load_library() -> Result> { + let runtime_path = std::env::current_dir() + .unwrap_or_default() + .join("runtime"); + + #[cfg(target_os = "windows")] + { + use std::os::windows::ffi::OsStrExt; + let path_wide = std::ffi::OsStr::new(&runtime_path) + .encode_wide() + .chain(std::iter::once(0)) + .collect::>(); + unsafe { + winapi::um::winbase::SetDllDirectoryW(path_wide.as_ptr()); + } + + let path_key = "PATH"; + let path_var = std::env::var_os(path_key).unwrap_or_default(); + let mut paths: Vec<_> = std::env::split_paths(&path_var).collect(); + if !paths.contains(&runtime_path) { + paths.insert(0, runtime_path.clone()); + let new_path = std::env::join_paths(paths).unwrap(); + std::env::set_var(path_key, new_path); + } + } + + #[cfg(unix)] + { + let path_key = if cfg!(target_os = "macos") { + "DYLD_LIBRARY_PATH" + } else { + "LD_LIBRARY_PATH" + }; + let path_var = std::env::var_os(path_key).unwrap_or_default(); + let mut paths: Vec<_> = std::env::split_paths(&path_var).collect(); + if !paths.contains(&runtime_path) { + paths.insert(0, runtime_path.clone()); + let new_path = std::env::join_paths(paths).unwrap(); + std::env::set_var(path_key, new_path); + } + } + + #[cfg(windows)] + let lib_paths = vec![ + "onnxruntime.dll", + "runtime/onnxruntime.dll", + "./runtime/onnxruntime.dll", + ]; + #[cfg(unix)] + let lib_paths = vec![ + "libonnxruntime.so", + "runtime/libonnxruntime.so", + "./runtime/libonnxruntime.so", + ]; + + let mut last_error = None; + for path in lib_paths { + match Library::new(path) { + Ok(lib) => { + println!("Loaded ONNX Runtime from: {}", path); + return Ok(lib); + } + Err(e) => { + last_error = Some(e); + } + } + } + + Err(OnnxRuntimeError(format!( + "Failed to load ONNX Runtime from any path. Last error: {}", + last_error.unwrap() + )) + .into()) + } + + pub fn new() -> Result> { + let lib = Self::load_library()?; + + unsafe { + let get_api_base: Symbol = lib.get(b"OrtGetApiBase")?; + let get_api: Symbol = lib.get(b"OrtGetApi")?; + + let api_base = get_api_base(); + if api_base.is_null() { + return Err(OnnxRuntimeError("Failed to get ONNX API base".into()).into()); + } + + let api = get_api(16); + if api.is_null() { + return Err(OnnxRuntimeError("Failed to get ONNX API v16".into()).into()); + } + + let create_env: Symbol< + unsafe extern "C" fn(u32, *const c_char, *mut *mut c_void) -> OrtStatusPtr, + > = lib.get(b"OrtCreateEnv")?; + let release_env: Symbol = + lib.get(b"OrtReleaseEnv")?; + let create_session_options: Symbol< + unsafe extern "C" fn(*mut *mut c_void) -> OrtStatusPtr, + > = lib.get(b"OrtCreateSessionOptions")?; + let release_session_options: Symbol = + lib.get(b"OrtReleaseSessionOptions")?; + let set_gpu_mem_limit: Symbol< + unsafe extern "C" fn(*mut c_void, c_int, c_int) -> OrtStatusPtr, + > = lib.get(b"OrtSetSessionMemoryAlignment")?; + let create_session: Symbol< + unsafe extern "C" fn( + *const c_char, + *mut c_void, + *mut c_void, + *mut *mut c_void, + ) -> OrtStatusPtr, + > = lib.get(b"OrtCreateSession")?; + let release_session: Symbol = + lib.get(b"OrtReleaseSession")?; + let get_input_count: Symbol< + unsafe extern "C" fn(*mut c_void, *mut c_int) -> OrtStatusPtr, + > = lib.get(b"OrtSessionGetInputCount")?; + let get_output_count: Symbol< + unsafe extern "C" fn(*mut c_void, *mut c_int) -> OrtStatusPtr, + > = lib.get(b"OrtSessionGetOutputCount")?; + let get_input_name: Symbol< + unsafe extern "C" fn( + *mut c_void, + c_int, + *mut c_void, + *mut *mut c_void, + ) -> OrtStatusPtr, + > = lib.get(b"OrtSessionGetInputName")?; + let get_output_name: Symbol< + unsafe extern "C" fn( + *mut c_void, + c_int, + *mut c_void, + *mut *mut c_void, + ) -> OrtStatusPtr, + > = lib.get(b"OrtSessionGetOutputName")?; + let release_allocator: Symbol = + lib.get(b"OrtReleaseAllocator")?; + let create_memory_info: Symbol< + unsafe extern "C" fn( + *mut *mut c_void, + *mut *mut c_void, + usize, + c_int, + c_int, + ) -> OrtStatusPtr, + > = lib.get(b"OrtCreateMemoryInfo")?; + let release_memory_info: Symbol = + lib.get(b"OrtReleaseMemoryInfo")?; + let create_tensor_with_data: Symbol< + unsafe extern "C" fn( + *mut *mut c_void, + *const c_void, + usize, + *mut c_void, + c_int, + *mut *mut c_void, + ) -> OrtStatusPtr, + > = lib.get(b"OrtCreateTensorWithDataAsOrtValue")?; + let get_tensor_type: Symbol< + unsafe extern "C" fn(*mut c_void, *mut c_int) -> OrtStatusPtr, + > = lib.get(b"OrtGetTensorType")?; + let release_value: Symbol = + lib.get(b"OrtReleaseValue")?; + let run: Symbol< + unsafe extern "C" fn( + *mut c_void, + *mut c_void, + *const *const c_char, + *const *mut c_void, + c_int, + *mut *mut c_void, + ) -> OrtStatusPtr, + > = lib.get(b"OrtRun")?; + let get_tensor_shape: Symbol< + unsafe extern "C" fn(*mut c_void, *mut c_int, *mut c_int) -> OrtStatusPtr, + > = lib.get(b"OrtGetTensorShape")?; + let get_allocator_with_default_options: Symbol< + unsafe extern "C" fn(*mut *mut c_void) -> OrtStatusPtr, + > = lib.get(b"OrtGetAllocatorWithDefaultOptions")?; + + Ok(OnnxRuntime { + lib, + get_api_base, + get_api, + create_env, + release_env, + create_session_options, + release_session_options, + set_gpu_mem_limit, + create_session, + release_session, + get_input_count, + get_output_count, + get_input_name, + get_output_name, + release_allocator, + create_memory_info, + release_memory_info, + create_tensor_with_data, + get_tensor_type, + release_value, + run, + get_tensor_shape, + get_string_tensor_data, + get_string_tensor_data_length, + get_allocator_with_default_options, + }) + } + } +} + +pub struct OnnxSession { + runtime: *mut OnnxRuntime, + session: OrtSessionPtr, + input_names: Vec, + output_names: Vec, +} + +impl OnnxSession { + pub fn load(runtime: &OnnxRuntime, model_path: &Path) -> Result> { + let mut session: OrtSessionPtr = null_mut(); + + unsafe { + let model_path_cstr = std::ffi::CString::new(model_path.to_string_lossy().as_bytes())?; + + let status = (runtime.create_session)( + model_path_cstr.as_ptr(), + runtime as *const _ as *mut c_void, + null_mut(), + &mut session, + ); + + if !status.is_null() { + return Err(OnnxRuntimeError("Failed to create ONNX session".into()).into()); + } + + let mut input_count: c_int = 0; + let mut output_count: c_int = 0; + + let status = (runtime.get_input_count)(session, &mut input_count); + if !status.is_null() { + return Err(OnnxRuntimeError("Failed to get input count".into()).into()); + } + + let status = (runtime.get_output_count)(session, &mut output_count); + if !status.is_null() { + return Err(OnnxRuntimeError("Failed to get output count".into()).into()); + } + + let mut allocator: OrtAllocatorPtr = null_mut(); + let status = (runtime.get_allocator_with_default_options)(&mut allocator); + if !status.is_null() { + return Err(OnnxRuntimeError("Failed to get default allocator".into()).into()); + } + + let mut input_names = Vec::new(); + for i in 0..input_count { + let mut name_ptr: *mut c_char = null_mut(); + let status = (runtime.get_input_name)( + session, + i, + allocator, + &mut name_ptr as *mut *mut c_char as *mut *mut c_void, + ); + if !status.is_null() { + return Err(OnnxRuntimeError("Failed to get input name".into()).into()); + } + let name = CStr::from_ptr(name_ptr).to_string_lossy().into_owned(); + input_names.push(name); + // Note: We are leaking the name string memory here because we don't have OrtAllocatorFree bound + } + + let mut output_names = Vec::new(); + for i in 0..output_count { + let mut name_ptr: *mut c_char = null_mut(); + let status = (runtime.get_output_name)( + session, + i, + allocator, + &mut name_ptr as *mut *mut c_char as *mut *mut c_void, + ); + if !status.is_null() { + return Err(OnnxRuntimeError("Failed to get output name".into()).into()); + } + let name = CStr::from_ptr(name_ptr).to_string_lossy().into_owned(); + output_names.push(name); + } + + Ok(OnnxSession { + runtime: runtime as *const _ as *mut OnnxRuntime, + session, + input_names, + output_names, + }) + } + } + + pub fn run( + &self, + runtime: &OnnxRuntime, + inputs: &[&[f32]], + output_shapes: &[Vec], + ) -> Result>, Box> { + let mut output_values: Vec = Vec::new(); + let mut input_values: Vec = Vec::new(); + + let mut allocator: OrtAllocatorPtr = null_mut(); + let mut memory_info: OrtMemoryInfoPtr = null_mut(); + + unsafe { + let status = (runtime.create_memory_info)(&mut memory_info, &mut allocator, 0, 1, 0); + if !status.is_null() { + return Err(OnnxRuntimeError("Failed to create memory info".into()).into()); + } + + for (i, input_data) in inputs.iter().enumerate() { + let shape: [i64; 2] = [1, input_data.len() as i64]; + let mut value: OrtValuePtr = null_mut(); + let status = (runtime.create_tensor_with_data)( + &mut value, + input_data.as_ptr() as *const c_void, + (input_data.len() * std::mem::size_of::()) as usize, + memory_info, + 2, + shape.as_ptr() as *mut c_void, + ); + + if !status.is_null() { + return Err(OnnxRuntimeError("Failed to create input tensor".into()).into()); + } + + input_values.push(value); + } + + let input_names_cstring: Result, _> = self + .input_names + .iter() + .map(|s| CString::new(s.as_str())) + .collect(); + let input_names_cstring = input_names_cstring?; + + let input_names_ptr: Vec<*const c_char> = + input_names_cstring.iter().map(|cs| cs.as_ptr()).collect(); + + let mut run_options: OrtRunOptionsPtr = null_mut(); + let status = (runtime.run)( + self.session, + run_options, + input_names_ptr.as_ptr(), + input_values.as_ptr() as *const *mut OrtValuePtr, + input_names_ptr.len() as c_int, + output_values.as_mut_ptr(), + output_shapes.len() as i32, + ); + + for value in input_values { + (runtime.release_value)(value); + } + (runtime.release_memory_info)(memory_info); + + if !status.is_null() { + return Err(OnnxRuntimeError("ONNX run failed".into()).into()); + } + + output_values.set_len(output_shapes.len()); + + let mut outputs = Vec::new(); + for (i, shape) in output_shapes.iter().enumerate() { + let value = output_values[i]; + let mut tensor_type: c_int = 0; + let status = (runtime.get_tensor_type)(value, &mut tensor_type); + if !status.is_null() { + for v in &output_values { + (runtime.release_value)(*v); + } + return Err(OnnxRuntimeError("Failed to get tensor type".into()).into()); + } + + let mut dims: [c_int; 4] = [0, 0, 0, 0]; + let status = (runtime.get_tensor_shape)(value, dims.as_mut_ptr(), 4); + if !status.is_null() { + for v in &output_values { + (runtime.release_value)(*v); + } + return Err(OnnxRuntimeError("Failed to get tensor shape".into()).into()); + } + + let total_size: usize = shape.iter().product::() as usize; + let mut output_data: Vec = vec![0.0; total_size]; + + let data_ptr = output_data.as_mut_ptr() as *mut c_void; + std::ptr::copy_nonoverlapping( + value as *const c_void, + data_ptr, + total_size * std::mem::size_of::(), + ); + + outputs.push(output_data); + } + + for value in output_values { + (runtime.release_value)(value); + } + + Ok(outputs) + } + } +} + +impl Drop for OnnxSession { + fn drop(&mut self) { + unsafe { + if !self.session.is_null() { + let runtime = &*self.runtime; + (runtime.release_session)(self.session); + } + } + } +} diff --git a/src/tts/engine.rs b/src/tts/engine.rs new file mode 100644 index 0000000..e8f925d --- /dev/null +++ b/src/tts/engine.rs @@ -0,0 +1,849 @@ +use crate::assets_manager::Assets; +use crate::models::llama::{LlamaBatch, LlamaContext, LlamaModel, LlamaSampler}; +use crate::models::onnx::{AudioDecoder, AudioEncoder, SpeakerEncoder}; +use crate::tts::prompt::PromptBuilder; +use crate::utils::cache; +use crate::utils::tokenizer::Tokenizer; +use crate::utils::voice_file::VoiceFile; +use crate::AudioSample; +use std::collections::HashMap; +use std::path::{Path, PathBuf}; +use std::sync::{Arc, Mutex}; + +/// Sampler configuration for TTS generation +#[derive(Debug, Clone)] +pub struct SamplerConfig { + /// Temperature for sampling (higher = more random, 0.0 = greedy) + pub temperature: f32, + /// Top-K sampling (0 = disabled) + pub top_k: i32, + /// Top-P (nucleus) sampling (1.0 = disabled) + pub top_p: f32, + /// Min-P sampling threshold (0.0 = disabled) + pub min_p: f32, + /// Repeat penalty (1.0 = disabled) + pub repeat_penalty: f32, + /// Frequency penalty (0.0 = disabled) + pub frequency_penalty: f32, + /// Presence penalty (0.0 = disabled) + pub presence_penalty: f32, + /// Number of recent tokens to consider for penalties + pub penalty_last_n: usize, + /// Random seed (None = use system entropy) + pub seed: Option, +} + +impl Default for SamplerConfig { + fn default() -> Self { + Self { + temperature: 0.9, + top_k: 50, + top_p: 1.0, + min_p: 0.0, + repeat_penalty: 1.05, + frequency_penalty: 0.0, + presence_penalty: 0.0, + penalty_last_n: 128, + seed: None, + } + } +} + +impl SamplerConfig { + pub fn new(temperature: f32, top_k: i32, top_p: f32, seed: Option) -> Self { + Self { + temperature, + top_k, + top_p, + min_p: 0.0, + repeat_penalty: 1.05, + frequency_penalty: 0.0, + presence_penalty: 0.0, + penalty_last_n: 128, + seed, + } + } + + pub fn with_penalties( + mut self, + min_p: f32, + repeat_penalty: f32, + frequency_penalty: f32, + presence_penalty: f32, + penalty_last_n: usize, + ) -> Self { + self.min_p = min_p; + self.repeat_penalty = repeat_penalty; + self.frequency_penalty = frequency_penalty; + self.presence_penalty = presence_penalty; + self.penalty_last_n = penalty_last_n; + self + } +} + +/// Main TTS Engine Struct +/// +/// IMPORTANT: Field ordering matters for Drop! +/// Rust drops fields in declaration order. Contexts MUST be declared before models +/// because context destructors reference model memory. If models are dropped first, +/// context destructors will access freed memory (ACCESS_VIOLATION). +pub struct TtsEngine { + assets: Assets, + tokenizer: Tokenizer, + // ONNX Models + encoder: Option, + speaker_encoder: Option, + decoder: Arc>>, + // Llama: Contexts MUST be listed before models for correct drop order + talker_ctx: LlamaContext, + predictor_ctx: LlamaContext, + talker_model: LlamaModel, + predictor_model: LlamaModel, + + // Speakers Cache + speakers: HashMap, + + // Config + _model_dir: PathBuf, + max_steps: usize, + sampler_config: SamplerConfig, +} + +impl TtsEngine { + /// Initialize the TTS Engine from the specified model directory. + /// + /// This function loads all necessary models (GGUF, Onnx, Tokenizer) from the given directory. + /// It ensures that the essential components for inference are present. + /// + /// # Arguments + /// + /// * `model_dir` - Path to the directory containing model files. + /// * `quant` - Quantization level (e.g., "none", "q5_k_m", "q8_0"). + /// * `n_threads` - Number of threads to use for generation (default: 4 if <= 0). + pub async fn new( + model_dir: impl AsRef, + quant: &str, + _n_threads: i32, + ) -> Result { + let model_dir = model_dir.as_ref(); + println!("Loading TtsEngine from: {:?} (quant: {})", model_dir, quant); + + // 0. Auto-download check (Models + Runtimes) + Self::download_models(model_dir, quant).await?; + + let quant_dir = match quant { + "q5_k_m" => "gguf_q5_k_m", + "q8_0" => "gguf_q8_0", + _ => "gguf", + }; + + // 1. Assets - 总是从未量化的 gguf 目录加载(assets 不应该被量化) + let assets_path = model_dir.join("gguf"); + let assets = + Assets::load(&assets_path).map_err(|e| format!("Failed to load assets: {}", e))?; + + // 2. Tokenizer + let tokenizer = + Tokenizer::load(model_dir).map_err(|e| format!("Failed to load tokenizer: {}", e))?; + + // 3. ONNX Runtime is initialized lazily by the first Session builder. + // The runtime DLL still needs to be discoverable at load time, but we avoid + // an eager global environment commit here because it can hang on some Linux setups. + println!("Initializing ONNX Runtime (lazy)..."); + + // 4. ONNX Models (Optional for preset mode, but good to have) + let onnx_dir = model_dir.join("onnx"); + let encoder = AudioEncoder::load( + &onnx_dir + .join("qwen3_tts_codec_encoder.onnx") + .to_string_lossy(), + ) + .ok(); + + let speaker_encoder = SpeakerEncoder::load( + &onnx_dir + .join("qwen3_tts_speaker_encoder.onnx") + .to_string_lossy(), + ) + .ok(); + + // 5. Load GGUF Models + let talker_path = model_dir.join(quant_dir).join("qwen3_tts_talker.gguf"); + let predictor_path = model_dir.join(quant_dir).join("qwen3_tts_predictor.gguf"); + + let talker_model = LlamaModel::load(&talker_path, 99) + .map_err(|e| format!("Failed to load Talker: {}", e))?; + + let predictor_model = LlamaModel::load(&predictor_path, 99) + .map_err(|e| format!("Failed to load Predictor: {}", e))?; + + // 5. Create Contexts + // talker: n_ctx=4096, n_batch=2048, embeddings=1, threads=-1 (auto) + let talker_ctx = LlamaContext::new(&talker_model, 4096, 2048, 1, -1) + .map_err(|e| format!("Failed to create Talker context: {}", e))?; + + // predictor: n_ctx=512, n_batch=32, embeddings=0, threads=4 + let predictor_ctx = LlamaContext::new(&predictor_model, 512, 32, 0, 4) + .map_err(|e| format!("Failed to create Predictor context: {}", e))?; + + // 6. 异步预加载 decoder(后台加载以避免阻塞启动)。如果后台加载失败 + //,会在实际需要解码时尝试延迟加载。 + println!("Starting background preload for AudioDecoder..."); + let decoder: Arc>> = Arc::new(Mutex::new(None)); + { + let decoder_clone = decoder.clone(); + let decoder_path = onnx_dir + .join("qwen3_tts_decoder.onnx") + .to_string_lossy() + .to_string(); + std::thread::spawn(move || match AudioDecoder::load(&decoder_path) { + Ok(d) => { + let mut guard = decoder_clone.lock().unwrap(); + *guard = Some(d); + println!("AudioDecoder loaded in background."); + } + Err(e) => { + println!("Warning: failed to preload AudioDecoder: {}", e); + } + }); + } + println!("AudioDecoder background preload started."); + + println!("TtsEngine loaded successfully."); + + let mut engine = Self { + assets, + tokenizer, + encoder, + speaker_encoder, + decoder, + talker_model, + predictor_model, + talker_ctx, + predictor_ctx, + speakers: HashMap::new(), + _model_dir: model_dir.to_path_buf(), + max_steps: 4096, + sampler_config: SamplerConfig::default(), + }; + + // 6. Load Speakers + let speakers_dir = model_dir.join("preset_speakers"); // Default to preset directory + let speakers_dir = if speakers_dir.exists() { + speakers_dir + } else { + PathBuf::from("speakers") + }; + + if speakers_dir.exists() { + engine.load_speakers(&speakers_dir)?; + } + + Ok(engine) + } + + /// Set the maximum number of generation steps (tokens). + pub fn set_max_steps(&mut self, steps: usize) { + self.max_steps = steps; + } + + /// Set the sampler configuration for generation. + pub fn set_sampler_config(&mut self, config: SamplerConfig) { + self.sampler_config = config; + } + + /// Get the current sampler configuration. + pub fn get_sampler_config(&self) -> &SamplerConfig { + &self.sampler_config + } + + /// Get mutable sampler configuration. + pub fn get_sampler_config_mut(&mut self) -> &mut SamplerConfig { + &mut self.sampler_config + } + + /// Get the speakers map. + pub fn get_speakers_map(&self) -> &HashMap { + &self.speakers + } + + /// Load all speakers from the specified directory. + pub fn load_speakers(&mut self, speakers_dir: impl AsRef) -> Result<(), String> { + let speakers_dir = speakers_dir.as_ref(); + println!("Loading speakers from: {:?}", speakers_dir); + + let entries = std::fs::read_dir(speakers_dir).map_err(|e| e.to_string())?; + for entry in entries { + let entry = entry.map_err(|e| e.to_string())?; + let path = entry.path(); + if path.extension().and_then(|s| s.to_str()) == Some("json") { + if let Ok(voice) = VoiceFile::load(&path) { + let id = path + .file_stem() + .and_then(|s| s.to_str()) + .unwrap_or("unknown") + .to_string(); + self.speakers.insert(id, voice); + } + } + } + println!("Loaded {} speakers.", self.speakers.len()); + Ok(()) + } + + /// Get a speaker by ID or name, with fallback to "vivian". + pub fn get_speaker(&self, id_or_name: &str) -> &VoiceFile { + if let Some(v) = self.speakers.get(id_or_name) { + return v; + } + // Fallback to name match + for v in self.speakers.values() { + if let Some(ref name) = v.name { + if name == id_or_name { + return v; + } + } + } + // Final fallback to vivian + self.speakers.get("vivian").unwrap_or_else(|| { + // Panic if even vivian is missing and cache is empty + self.speakers + .values() + .next() + .expect("No speakers loaded in engine!") + }) + } + + /// Helper to download necessary files before loading. + pub async fn download_models(model_dir: impl AsRef, quant: &str) -> Result<(), String> { + let downloader = crate::download::Downloader::new().await; + downloader + .check_and_download(model_dir.as_ref(), quant) + .await + .map_err(|e| format!("Download failed: {}", e)) + } + + /// Generate speech from text using a reference audio. + pub fn generate( + &mut self, + text: &str, + ref_audio_path: impl AsRef, + ref_text: &str, + instruct: Option<&str>, + ) -> Result { + let ref_audio_path = ref_audio_path.as_ref(); + + // 1. Process Reference Audio + let (ref_codes, spk_emb) = self.process_reference(ref_audio_path)?; + + // 2. Build Prompt + // lang_id = 2055 (Chinese) hardcoded for now or parameterize later + let ref_text_ids = self.tokenizer.encode(ref_text); + let ref_codes_i32: Vec = ref_codes.iter().map(|&c| c as i32).collect(); + + let prompt_data = PromptBuilder::build_clone_prompt( + text, + &self.tokenizer, + &self.assets, + &ref_codes_i32, + &ref_text_ids, + &spk_emb, + 2055, + instruct, + ); + + self.run_inference(prompt_data) + } + + /// Process reference audio to get codes and speaker embedding, using cache if available. + fn process_reference(&mut self, audio_path: &Path) -> Result<(Vec, Vec), String> { + let cache_path = audio_path.with_extension("cache"); + if cache_path.exists() { + if let Ok((c, e)) = cache::load_cache(&cache_path) { + return Ok((c, e)); + } + } + + let audio = AudioSample::load_wav(audio_path) + .map_err(|e| format!("Failed to load audio: {}", e))?; + + let ref_codes = self + .encoder + .as_mut() + .ok_or("AudioEncoder not loaded (required for processing raw audio)".to_string())? + .encode(&audio.samples) + .map_err(|e| format!("Audio encode failed: {}", e))?; + let spk_emb = self + .speaker_encoder + .as_mut() + .ok_or("SpeakerEncoder not loaded (required for processing raw audio)".to_string())? + .encode(&audio.samples) + .map_err(|e| format!("Speaker extraction failed: {}", e))?; + + let _ = cache::save_cache(&cache_path, &ref_codes, &spk_emb); + + Ok((ref_codes, spk_emb)) + } + + // --- Helpers --- + + fn qwen3_position(start: i32, len: usize) -> Vec { + let mut pos = Vec::with_capacity(len * 4); + let range: Vec = (start..start + len as i32).collect(); + pos.extend_from_slice(&range); // Temporal + pos.extend_from_slice(&range); // Height + pos.extend_from_slice(&range); // Width + pos.extend(std::iter::repeat_n(0, len)); // Channel + pos + } + + fn normal_position(cur_pos: usize, n_tokens: usize) -> Vec { + (0..n_tokens).map(|i| (cur_pos + i) as i32).collect() + } + + /// Create a VoiceFile from a reference audio file and its text. + /// + /// Requires that AudioEncoder and SpeakerEncoder are loaded. + /// The reference audio MUST be 24000Hz. + pub fn create_voice_file( + &mut self, + audio_path: impl AsRef, + ref_text: String, + ) -> Result { + let encoder = self.encoder.as_mut().ok_or( + "AudioEncoder not loaded. Please ensure models/onnx/qwen3_tts_codec_encoder.onnx exists.", + )?; + let speaker_encoder = self.speaker_encoder.as_mut().ok_or( + "SpeakerEncoder not loaded. Please ensure models/onnx/qwen3_tts_speaker_encoder.onnx exists.", + )?; + + // 1. Load Audio + let mut reader = + hound::WavReader::open(audio_path).map_err(|e| format!("WAV error: {}", e))?; + let spec = reader.spec(); + + if spec.sample_rate != 24000 { + return Err(format!( + "Expected 24000Hz audio, found {}Hz", + spec.sample_rate + )); + } + + let audio: Vec = match (spec.sample_format, spec.bits_per_sample) { + (hound::SampleFormat::Float, 32) => { + reader.samples::().map(|s| s.unwrap_or(0.0)).collect() + } + (hound::SampleFormat::Int, 16) => reader + .samples::() + .map(|s| (s.unwrap_or(0) as f32) / 32768.0) + .collect(), + (hound::SampleFormat::Int, 32) => reader + .samples::() + .map(|s| (s.unwrap_or(0) as f32) / 2147483648.0) + .collect(), + _ => { + return Err(format!( + "Unsupported WAV format: {:?} {} bits", + spec.sample_format, spec.bits_per_sample + )) + } + }; + + // If stereo, take channel 1 + let audio = if spec.channels > 1 { + audio.chunks(spec.channels as usize).map(|c| c[0]).collect() + } else { + audio + }; + + // 2. Run Encoders + println!("Extracting audio codes..."); + let audio_codes = encoder.encode(&audio).map_err(|e| e.to_string())?; + + println!("Extracting speaker embedding..."); + let speaker_embedding = speaker_encoder.encode(&audio).map_err(|e| e.to_string())?; + + Ok(crate::utils::voice_file::VoiceFile::new( + ref_text, + audio_codes, + speaker_embedding, + )) + } + + /// Generate speech using a pre-loaded VoiceFile. + pub fn generate_with_voice( + &mut self, + text: &str, + voice: &crate::VoiceFile, + instruct: Option<&str>, + ) -> Result { + self.generate_with_voice_streaming(text, voice, instruct, None) + } + + /// Generate speech using a pre-loaded VoiceFile. + pub fn generate_with_voice_streaming( + &mut self, + text: &str, + voice: &crate::VoiceFile, + instruct: Option<&str>, + stream_tx: Option>>, + ) -> Result { + let prompt_data = if voice.audio_codes.is_empty() { + PromptBuilder::build_core( + text, + &self.tokenizer, + &self.assets, + Some(2055), + None, + Some(&voice.speaker_embedding), + instruct, + None, + ) + } else { + let ref_text_ids = self.tokenizer.encode(&voice.ref_text); + let ref_codes_i32: Vec = voice.audio_codes.iter().map(|&c| c as i32).collect(); + + Ok(PromptBuilder::build_clone_prompt( + text, + &self.tokenizer, + &self.assets, + &ref_codes_i32, + &ref_text_ids, + &voice.speaker_embedding, + 2055, + instruct, + )) + }?; + + self.run_inference_stream(prompt_data, stream_tx) + } + + fn run_inference( + &mut self, + prompt_data: crate::tts::prompt::PromptData, + ) -> Result { + self.run_inference_stream(prompt_data, None) + } + + fn run_inference_stream( + &mut self, + prompt_data: crate::tts::prompt::PromptData, + stream_tx: Option>>, + ) -> Result { + self.talker_ctx.clear_kv_cache(); + self.predictor_ctx.clear_kv_cache(); + + let n_tokens_prompt = prompt_data.embd.len(); + let prompt_embeds_flat: Vec = prompt_data.embd.iter().flatten().copied().collect(); + let talker_embd = self.talker_model.n_embd; + let predictor_embd = self.predictor_model.n_embd; + + let mut talker_batch = LlamaBatch::new(4096, talker_embd, 1, 4); + let pos_arr = Self::qwen3_position(0, n_tokens_prompt); + talker_batch.set_embd(&prompt_embeds_flat, &pos_arr, 0); + + self.talker_ctx + .decode(&mut talker_batch) + .map_err(|e| format!("Talker prefill failed: {}", e))?; + + let mut all_codes: Vec = Vec::new(); + let mut cur_pos = n_tokens_prompt; + + let mut predictor_batch = LlamaBatch::new(32, predictor_embd, 1, 1); + let predictor_sampler = LlamaSampler::greedy(self.predictor_model.n_vocab); + + let seed = self.sampler_config.seed.unwrap_or_else(|| { + std::time::SystemTime::now() + .duration_since(std::time::UNIX_EPOCH) + .map(|d| d.as_nanos() as u64) + .unwrap_or_else(|_| rand::random()) + }); + let talker_sampler = LlamaSampler::new( + self.talker_model.n_vocab, + self.sampler_config.temperature, + self.sampler_config.top_k, + self.sampler_config.top_p, + seed, + ); + + let (tx, rx) = std::sync::mpsc::channel::<(Vec, bool)>(); + + let tts_pad = self.assets.tts_pad.clone(); + let decoder_arc = self.decoder.clone(); + let decoder_model_path = self + ._model_dir + .join("onnx") + .join("qwen3_tts_decoder.onnx") + .to_string_lossy() + .to_string(); + + let decoder_handle = std::thread::spawn(move || { + let mut full_audio = Vec::new(); + + // Ensure decoder is available: if background preload didn't set it, + // attempt to load lazily here. If loading fails, abort decoding. + { + let mut guard = decoder_arc.lock().unwrap(); + if guard.is_none() { + match AudioDecoder::load(&decoder_model_path) { + Ok(d) => { + *guard = Some(d); + println!("AudioDecoder loaded lazily in decoder thread."); + } + Err(e) => { + eprintln!("Failed to load decoder in thread: {}", e); + return Vec::new(); + } + } + } + } + + let mut state = AudioDecoder::create_state(); + + while let Ok((codes, is_final)) = rx.recv() { + let n_frames = codes.len() / 16; + + if n_frames == 0 { + if is_final { + let mut guard = decoder_arc.lock().unwrap(); + if let Some(ref mut local_decoder) = guard.as_mut() { + if let Ok(samples) = local_decoder.decode(&[], &mut state, true) { + if !samples.is_empty() { + if let Some(ref stx) = stream_tx { + let _ = stx.send(samples.clone()); + } + full_audio.extend(samples); + } + } + } + break; + } + continue; + } + + let safe_codes: Vec = codes.iter().map(|&c| c.clamp(0, 2047)).collect(); + + let mut guard = decoder_arc.lock().unwrap(); + if let Some(ref mut local_decoder) = guard.as_mut() { + if let Ok(samples) = local_decoder.decode(&safe_codes, &mut state, is_final) { + if !samples.is_empty() { + if let Some(ref stx) = stream_tx { + let _ = stx.send(samples.clone()); + } + full_audio.extend(samples); + } + } + } + } + full_audio + }); + + // 连续静音检测参数 (12.5Hz = 80ms/帧) + const MAX_SILENT_FRAMES: usize = 15; // 1.2秒强制停止 + const SILENT_PENALTY_THRESHOLD: usize = 4; // 0.3秒(4帧)后开始惩罚 + const SILENT_PENALTY_MAX_FRAMES: usize = 8; // 0.6秒(8帧)后极大惩罚 + const SILENT_PENALTY_VALUE: f32 = 2.0; + + // 流式发送参数 + const SEND_INTERVAL: usize = 4; + let mut consecutive_silent_frames: usize = 0; + let mut last_sent_frame: usize = 0; + + for step in 0..self.max_steps { + print!("\r Generation Step {}/{}...", step + 1, self.max_steps); + let _ = std::io::Write::flush(&mut std::io::stdout()); + + // Talker + let sample_idx = if cur_pos == n_tokens_prompt { + (n_tokens_prompt - 1) as i32 + } else { + 0 + }; + + let allow_tokens: Vec = vec![2150, 2148, 2149]; + + let code_0 = if consecutive_silent_frames >= SILENT_PENALTY_THRESHOLD { + let penalty = if consecutive_silent_frames >= SILENT_PENALTY_MAX_FRAMES { + 100.0 // 极大惩罚,强制退出静音 + } else { + SILENT_PENALTY_VALUE + * (1.0 + + (consecutive_silent_frames - SILENT_PENALTY_THRESHOLD) as f32 * 0.5) + }; + eprintln!( + "[Debug] silent {} frames, penalty: {:.1}", + consecutive_silent_frames, penalty + ); + talker_sampler.sample_with_silent_penalty( + &self.talker_ctx, + sample_idx, + Some(0), + Some(2048), + Some(&allow_tokens), + penalty, + SILENT_PENALTY_MAX_FRAMES, // 只对前8帧应用惩罚 + ) + } else { + talker_sampler.sample_with_allow( + &self.talker_ctx, + sample_idx, + Some(0), + Some(2048), + Some(&allow_tokens), + ) + }; + eprintln!("[Debug] Sampled code_0={}", code_0); + + if code_0 == 2150 || code_0 == 151673 { + println!("\n EOS detected at step {} (code_0={})", step, code_0); + break; + } + + let is_silent_frame = code_0 < 100; + if is_silent_frame { + consecutive_silent_frames += 1; + eprintln!( + "[Debug] silent frame {}, code_0={}", + consecutive_silent_frames, code_0 + ); + if consecutive_silent_frames >= MAX_SILENT_FRAMES { + eprintln!( + "[Debug] Early stop: {} consecutive silent frames", + consecutive_silent_frames + ); + println!( + "\n Early stop: {} consecutive silent frames detected", + consecutive_silent_frames + ); + break; + } + } else { + consecutive_silent_frames = 0; + } + + all_codes.push(code_0); + + // Predictor + let emb_idx = if step == 0 { n_tokens_prompt - 1 } else { 0 }; + let m_hidden = self.talker_ctx.get_embedding_at(emb_idx).to_vec(); + + let m_h_1024 = self.assets.project(&m_hidden); + let code_0_1024 = self.assets.get_codec_embedding_1024(0, code_0); + + let mut predictor_input = Vec::with_capacity(2 * predictor_embd); + predictor_input.extend_from_slice(&m_h_1024); + predictor_input.extend_from_slice(&code_0_1024); + + self.predictor_ctx.clear_kv_cache(); + predictor_batch.clear(); + let pred_pos = Self::normal_position(0, 2); + predictor_batch.set_embd(&predictor_input, &pred_pos, 0); + + self.predictor_ctx + .decode(&mut predictor_batch) + .map_err(|e| format!("Predictor prefill failed: {}", e))?; + + let mut step_embeds_2048: Vec> = Vec::new(); + step_embeds_2048.push(self.assets.get_codec_embedding(0, code_0)); + + for q in 1..16 { + let start_offset = (q - 1) * 2048; + let end_offset = q * 2048; + let sampled = predictor_sampler.sample( + &self.predictor_ctx, + 0, + Some(start_offset), + Some(end_offset), + ); + let code_q = sampled - start_offset as i32; + all_codes.push(code_q); + + let emb = self.assets.get_codec_embedding(q, code_q); + step_embeds_2048.push(emb.to_vec()); + + if q < 15 { + let next_embed_1024 = self.assets.get_codec_embedding_1024(q, code_q); + let next_pos = Self::normal_position(q + 1, 1); + predictor_batch.clear(); + predictor_batch.set_embd(&next_embed_1024, &next_pos, 0); + self.predictor_ctx + .decode(&mut predictor_batch) + .map_err(|e| format!("Predictor decode failed: {}", e))?; + } + } + + // 流式发送 + let current_frame = all_codes.len() / 16; + + if current_frame > last_sent_frame + SEND_INTERVAL { + let start_frame = last_sent_frame; + let end_frame = last_sent_frame + SEND_INTERVAL; + + let start_idx = start_frame * 16; + let end_idx = end_frame * 16; + let frame_codes: Vec = all_codes[start_idx..end_idx] + .iter() + .map(|&c| c as i64) + .collect(); + + let _ = tx.send((frame_codes, false)); + last_sent_frame += SEND_INTERVAL; + } + + let mut feedback = vec![0.0f32; 2048]; + for embed in &step_embeds_2048 { + for (i, val) in embed.iter().enumerate() { + feedback[i] += val; + } + } + + let text_vec = &tts_pad; + for (i, val) in text_vec.iter().enumerate() { + if i < feedback.len() { + feedback[i] += val; + } + } + feedback.resize(talker_embd, 0.0); + + let talker_pos = Self::qwen3_position(cur_pos as i32, 1); + talker_batch.clear(); + talker_batch.set_embd(&feedback, &talker_pos, 0); + + self.talker_ctx + .decode(&mut talker_batch) + .map_err(|e| format!("Talker step failed: {}", e))?; + + cur_pos += 1; + } + + // 发送剩余的帧 + let total_frames = all_codes.len() / 16; + + if total_frames > last_sent_frame { + let start_frame = last_sent_frame; + let end_frame = total_frames; + + let start_idx = start_frame * 16; + let end_idx = end_frame * 16; + let frame_codes: Vec = all_codes[start_idx..end_idx] + .iter() + .map(|&c| c as i64) + .collect(); + + let _ = tx.send((frame_codes, true)); + } else { + let _ = tx.send((Vec::new(), true)); + } + drop(tx); + + let audio_samples = decoder_handle + .join() + .map_err(|_| "Decoder thread panicked".to_string())?; + + Ok(AudioSample { + samples: audio_samples, + sample_rate: 24000, + channels: 1, + }) + } +} diff --git a/src/tts/mod.rs b/src/tts/mod.rs new file mode 100644 index 0000000..2039fba --- /dev/null +++ b/src/tts/mod.rs @@ -0,0 +1,2 @@ +pub mod engine; +pub mod prompt; diff --git a/src/tts/prompt.rs b/src/tts/prompt.rs new file mode 100644 index 0000000..b676417 --- /dev/null +++ b/src/tts/prompt.rs @@ -0,0 +1,394 @@ +use crate::assets_manager::Assets; +use crate::utils::tokenizer::Tokenizer; + +// Constants from PROTOCOL +pub const PAD: usize = 2148; +pub const BOS: usize = 2149; +pub const EOS: usize = 2150; +pub const BOS_TOKEN: usize = 151672; +pub const EOS_TOKEN: usize = 151673; +pub const THINK: usize = 2154; +pub const NOTHINK: usize = 2155; +pub const THINK_BOS: usize = 2156; +pub const THINK_EOS: usize = 2157; + +// Magic token derived from Python implementation (assets.text_table[151671]) +pub const TEXT_AUDIO_MARKER: usize = 151671; + +pub struct PromptData { + pub embd: Vec>, + pub text_ids: Vec, + pub spk_emb: Vec, +} + +pub struct PromptBuilder; + +impl PromptBuilder { + #[allow(clippy::too_many_arguments)] + pub fn build_clone_prompt( + text: &str, + tokenizer: &Tokenizer, + assets: &Assets, + ref_codes: &[i32], + ref_text_ids: &[u32], + spk_emb: &[f32], + lang_id: usize, + instruct: Option<&str>, + ) -> PromptData { + let tts_pad = &assets.tts_pad; + + let text_ids = tokenizer.encode(text); + let mut text_pool_ids: Vec = ref_text_ids.to_vec(); + text_pool_ids.extend(text_ids.iter().copied()); + text_pool_ids.push(EOS_TOKEN as u32); + + let text_pool: Vec> = text_pool_ids + .iter() + .map(|&id| assets.get_text_embedding(id as usize)) + .collect(); + + let mut audio_pool: Vec> = Vec::new(); + audio_pool.push(assets.get_codec_embedding(0, BOS as i32)); + + let n_steps = ref_codes.len() / 16; + for step in 0..n_steps { + let mut step_sum = vec![0.0f32; 2048]; + for q in 0..16 { + let c = ref_codes[step * 16 + q]; + let emb = assets.get_codec_embedding(q, c); + for i in 0..2048 { + step_sum[i] += emb[i]; + } + } + audio_pool.push(step_sum); + } + + let t_len = text_pool.len(); + let a_len = audio_pool.len(); + + let max_len = t_len.max(a_len); + let mut body = Vec::with_capacity(max_len); + for i in 0..max_len { + let text_vec = if i < t_len { &text_pool[i] } else { tts_pad }; + let audio_vec = if i < a_len { &audio_pool[i] } else { tts_pad }; + let fused: Vec = text_vec + .iter() + .zip(audio_vec.iter()) + .map(|(t, a)| t + a) + .collect(); + body.push(fused); + } + + Self::build_core_with_clone_body( + text, + tokenizer, + assets, + Some(lang_id), + Some(spk_emb), + instruct, + body, + ) + } + + pub fn build_custom_prompt( + text: &str, + tokenizer: &Tokenizer, + assets: &Assets, + spk_id: usize, + lang_id: usize, + instruct: Option<&str>, + ) -> Result { + Self::build_core( + text, + tokenizer, + assets, + Some(lang_id), + Some(spk_id), + None, + instruct, + None, + ) + } + + fn build_core_with_clone_body( + text: &str, + tokenizer: &Tokenizer, + assets: &Assets, + lang_id: Option, + spk_emb: Option<&[f32]>, + instruct: Option<&str>, + body: Vec>, + ) -> PromptData { + let mut embeds = Vec::new(); + + if let Some(ins) = instruct { + let prefix = vec![151644, 872, 198]; + for id in prefix { + embeds.push(assets.get_text_embedding(id)); + } + let content_ids = tokenizer.encode(ins); + for id in content_ids { + embeds.push(assets.get_text_embedding(id as usize)); + } + let suffix = vec![151645, 198]; + for id in suffix { + embeds.push(assets.get_text_embedding(id)); + } + } + + for id in [151644, 77091, 198] { + embeds.push(assets.get_text_embedding(id)); + } + + let marker_emb = assets.get_text_embedding(TEXT_AUDIO_MARKER); + + if let Some(lid) = lang_id { + let ids = [THINK, THINK_BOS, lid, THINK_EOS]; + for &id in &ids { + let e = assets.get_codec_embedding(0, id as i32); + let sum: Vec = marker_emb + .iter() + .zip(e.iter()) + .map(|(a, b)| a + b) + .collect(); + embeds.push(sum); + } + } else { + let ids = [NOTHINK, THINK_BOS, THINK_EOS]; + for &id in &ids { + let e = assets.get_codec_embedding(0, id as i32); + let sum: Vec = marker_emb + .iter() + .zip(e.iter()) + .map(|(a, b)| a + b) + .collect(); + embeds.push(sum); + } + } + + if let Some(se) = spk_emb { + let sum: Vec = marker_emb + .iter() + .zip(se.iter()) + .map(|(a, b)| a + b) + .collect(); + embeds.push(sum); + } + + embeds.extend(body); + + let text_ids = tokenizer.encode(text); + let result_spk_emb = spk_emb + .map(|s| s.to_vec()) + .unwrap_or_else(|| vec![0.0; 2048]); + + PromptData { + embd: embeds, + text_ids: text_ids.into_iter().collect(), + spk_emb: result_spk_emb, + } + } + + #[allow(clippy::too_many_arguments)] + pub fn build_core( + text: &str, + tokenizer: &Tokenizer, + assets: &Assets, + lang_id: Option, + spk_id: Option, + spk_emb: Option<&[f32]>, + instruct: Option<&str>, + mid_embeds: Option>>, + ) -> Result { + let mut embeds = Vec::new(); + let text_ids = tokenizer.encode(text); + + // Check if text_ids is empty (e.g., only punctuation) + if text_ids.is_empty() { + return Err("Text is empty or contains only unsupported characters".to_string()); + } + + // Check if text contains only punctuation and whitespace + let text_trimmed: String = text.chars().filter(|c| !c.is_whitespace()).collect(); + let only_punctuation = text_trimmed.chars().all(|c| { + matches!( + c, + ',' | '。' + | '、' + | ';' + | ':' + | '?' + | '!' + | '"' + | '\'' + | '(' + | ')' + | '【' + | '】' + | '《' + | '》' + | '…' + | '—' + | '~' + | ',' + | '.' + | '!' + | '?' + | ';' + | ':' + | '(' + | ')' + | '[' + | ']' + | '<' + | '>' + | '-' + | '~' + | '`' + | '@' + | '#' + | '$' + | '%' + | '^' + | '&' + | '*' + | '+' + | '=' + | '|' + | '\\' + | '/' + | '{' + | '}' + | '_' + ) + }); + if only_punctuation && !text_trimmed.is_empty() { + return Err( + "Text contains only punctuation marks, which may cause generation issues" + .to_string(), + ); + } + + let result_spk_emb = spk_emb + .map(|s| s.to_vec()) + .unwrap_or_else(|| vec![0.0; 2048]); + + let marker_emb = assets.get_text_embedding(TEXT_AUDIO_MARKER); + + // 1. Instruct Block (User) + if let Some(ins) = instruct { + // <|im_start|>user\n + let prefix = vec![151644, 872, 198]; + for id in prefix { + embeds.push(assets.get_text_embedding(id)); + } + let content_ids = tokenizer.encode(ins); + for id in content_ids { + embeds.push(assets.get_text_embedding(id as usize)); + } + // <|im_end|>\n + let suffix = vec![151645, 198]; + for id in suffix { + embeds.push(assets.get_text_embedding(id)); + } + } + + // 2. Role Block (Assistant) + // <|im_start|>assistant\n -> [151644, 77091, 198] + for id in [151644, 77091, 198] { + embeds.push(assets.get_text_embedding(id)); + } + + // 3. Control Block + if let Some(lid) = lang_id { + // THINK, THINK_BOS, lang_id, THINK_EOS + let ids = [THINK, THINK_BOS, lid, THINK_EOS]; + for &id in &ids { + let e = assets.get_codec_embedding(0, id as i32); + let sum: Vec = marker_emb + .iter() + .zip(e.iter()) + .map(|(a, b)| a + b) + .collect(); + embeds.push(sum); + } + } else { + // NOTHINK, THINK_BOS, THINK_EOS + let ids = [NOTHINK, THINK_BOS, THINK_EOS]; + for &id in &ids { + let e = assets.get_codec_embedding(0, id as i32); + let sum: Vec = marker_emb + .iter() + .zip(e.iter()) + .map(|(a, b)| a + b) + .collect(); + embeds.push(sum); + } + } + + // Speaker ID/Emb + if let Some(sid) = spk_id { + let e = assets.get_codec_embedding(0, sid as i32); + let sum: Vec = marker_emb + .iter() + .zip(e.iter()) + .map(|(a, b)| a + b) + .collect(); + embeds.push(sum); + } else if let Some(se) = spk_emb { + let sum: Vec = marker_emb + .iter() + .zip(se.iter()) + .map(|(a, b)| a + b) + .collect(); + embeds.push(sum); + } + + // 4. Mid Embeds + if let Some(mids) = mid_embeds { + embeds.extend(mids); + } + + // 5. Task Text Block + // BOS_TOKEN + PAD + let pad_0 = assets.get_codec_embedding(0, PAD as i32); + let bos_token_emb = assets.get_text_embedding(BOS_TOKEN); + let bos_sum: Vec = bos_token_emb + .iter() + .zip(pad_0.iter()) + .map(|(a, b)| a + b) + .collect(); + embeds.push(bos_sum); + + for &id in &text_ids { + let t_emb = assets.get_text_embedding(id as usize); + let sum: Vec = t_emb.iter().zip(pad_0.iter()).map(|(a, b)| a + b).collect(); + embeds.push(sum); + } + + // EOS_TOKEN + PAD + let eos_token_emb = assets.get_text_embedding(EOS_TOKEN); + let eos_sum: Vec = eos_token_emb + .iter() + .zip(pad_0.iter()) + .map(|(a, b)| a + b) + .collect(); + embeds.push(eos_sum); + + // 6. Activation (BOS) + // Python: assets.text_table[151671] + assets.emb_tables[0][p["BOS"]] + let bos_emb = assets.get_codec_embedding(0, BOS as i32); + let act_sum: Vec = marker_emb + .iter() + .zip(bos_emb.iter()) + .map(|(a, b)| a + b) + .collect(); + embeds.push(act_sum); + + Ok(PromptData { + embd: embeds, + text_ids: text_ids.into_iter().collect(), + spk_emb: result_spk_emb, + }) + } +} diff --git a/src/utils/audio.rs b/src/utils/audio.rs new file mode 100644 index 0000000..087e59e --- /dev/null +++ b/src/utils/audio.rs @@ -0,0 +1,65 @@ +use hound; +use std::path::Path; + +pub struct AudioSample { + pub samples: Vec, + pub sample_rate: u32, + pub channels: u16, +} + +impl AudioSample { + pub fn load_wav(path: impl AsRef) -> Result { + let mut reader = hound::WavReader::open(path).map_err(|e| e.to_string())?; + let spec = reader.spec(); + let samples: Vec = reader + .samples::() + .map(|s| s.unwrap_or(0) as f32 / 32768.0) // Normalize i16 to f32 + .collect(); + + Ok(Self { + samples, + sample_rate: spec.sample_rate, + channels: spec.channels, + }) + } + + pub fn save_wav(&self, path: impl AsRef) -> Result<(), String> { + let spec = hound::WavSpec { + channels: self.channels, + sample_rate: self.sample_rate, + bits_per_sample: 16, + sample_format: hound::SampleFormat::Int, + }; + let mut writer = hound::WavWriter::create(path, spec).map_err(|e| e.to_string())?; + + for &sample in &self.samples { + let amp = (sample * 32767.0).clamp(-32768.0, 32767.0) as i16; + writer.write_sample(amp).map_err(|e| e.to_string())?; + } + writer.finalize().map_err(|e| e.to_string())?; + Ok(()) + } + + pub fn to_wav_bytes(&self) -> Vec { + let spec = hound::WavSpec { + channels: self.channels, + sample_rate: self.sample_rate, + bits_per_sample: 16, + sample_format: hound::SampleFormat::Int, + }; + let mut cursor = std::io::Cursor::new(Vec::new()); + { + let mut writer = hound::WavWriter::new(&mut cursor, spec).unwrap(); + for &sample in &self.samples { + let amp = (sample * 32767.0).clamp(-32768.0, 32767.0) as i16; + writer.write_sample(amp).unwrap(); + } + writer.finalize().unwrap(); + } + cursor.into_inner() + } + + pub fn duration(&self) -> f32 { + self.samples.len() as f32 / self.sample_rate as f32 + } +} diff --git a/src/utils/cache.rs b/src/utils/cache.rs new file mode 100644 index 0000000..7bd3275 --- /dev/null +++ b/src/utils/cache.rs @@ -0,0 +1,67 @@ +use std::fs::File; +use std::io::{self, Read, Write}; +use std::path::Path; + +pub const MAGIC: &[u8] = b"TTSC"; +pub const VERSION: u32 = 1; + +pub fn save_cache(path: &Path, codes: &[i64], emb: &[f32]) -> io::Result<()> { + let mut file = File::create(path)?; + file.write_all(MAGIC)?; + file.write_all(&VERSION.to_le_bytes())?; + + file.write_all(&codes.len().to_le_bytes())?; + for &code in codes { + file.write_all(&code.to_le_bytes())?; + } + + file.write_all(&emb.len().to_le_bytes())?; + for &val in emb { + file.write_all(&val.to_le_bytes())?; + } + + Ok(()) +} + +pub fn load_cache(path: &Path) -> io::Result<(Vec, Vec)> { + let mut file = File::open(path)?; + let mut magic = [0u8; 4]; + file.read_exact(&mut magic)?; + if magic != MAGIC { + return Err(io::Error::new( + io::ErrorKind::InvalidData, + "Invalid magic bytes", + )); + } + + let mut version_bytes = [0u8; 4]; + file.read_exact(&mut version_bytes)?; + let version = u32::from_le_bytes(version_bytes); + if version != VERSION { + return Err(io::Error::new( + io::ErrorKind::InvalidData, + "Unsupported version", + )); + } + + let mut len_bytes = [0u8; 8]; + file.read_exact(&mut len_bytes)?; + let codes_len = usize::from_le_bytes(len_bytes); + let mut codes = Vec::with_capacity(codes_len); + for _ in 0..codes_len { + let mut bytes = [0u8; 8]; + file.read_exact(&mut bytes)?; + codes.push(i64::from_le_bytes(bytes)); + } + + file.read_exact(&mut len_bytes)?; + let emb_len = usize::from_le_bytes(len_bytes); + let mut emb = Vec::with_capacity(emb_len); + for _ in 0..emb_len { + let mut bytes = [0u8; 4]; + file.read_exact(&mut bytes)?; + emb.push(f32::from_le_bytes(bytes)); + } + + Ok((codes, emb)) +} diff --git a/src/utils/config.rs b/src/utils/config.rs new file mode 100644 index 0000000..9a076da --- /dev/null +++ b/src/utils/config.rs @@ -0,0 +1,23 @@ +use clap::Parser; +use std::path::PathBuf; + +#[derive(Debug, Parser)] +#[command(name = "qwen3-tts")] +pub struct Args { + #[arg(short, long, default_value = "model-base")] + pub model: PathBuf, + #[arg(short, long)] + pub text: Option, + #[arg(short, long)] + pub voice: Option, + #[arg(short, long, default_value = "chinese")] + pub language: String, + #[arg(short, long, default_value = "0.8")] + pub temperature: f32, + #[arg(short, long)] + pub stream: bool, + #[arg(short, long)] + pub output: Option, + #[arg(short, long)] + pub verbose: bool, +} diff --git a/src/utils/mod.rs b/src/utils/mod.rs new file mode 100644 index 0000000..9a0a93b --- /dev/null +++ b/src/utils/mod.rs @@ -0,0 +1,6 @@ +pub mod audio; +pub mod cache; +pub mod config; +pub mod stream; +pub mod tokenizer; +pub mod voice_file; diff --git a/src/utils/stream.rs b/src/utils/stream.rs new file mode 100644 index 0000000..8bde314 --- /dev/null +++ b/src/utils/stream.rs @@ -0,0 +1,8 @@ +//! Stream module placeholder +pub struct TTSStream; +#[derive(Default)] +pub struct TTSResult { + pub audio: Vec, + pub text: String, + pub codes: Vec, +} diff --git a/src/utils/tokenizer.rs b/src/utils/tokenizer.rs new file mode 100644 index 0000000..a3d04a2 --- /dev/null +++ b/src/utils/tokenizer.rs @@ -0,0 +1,36 @@ +use std::path::Path; +use tokenizers::Tokenizer as HfTokenizer; + +pub struct Tokenizer { + inner: HfTokenizer, +} + +impl Tokenizer { + pub fn load(model_dir: &Path) -> Result> { + let path = model_dir.join("tokenizer").join("tokenizer.json"); + println!("Loading tokenizer from: {}", path.display()); + let inner = + HfTokenizer::from_file(path).map_err(|e| format!("Failed to load tokenizer: {}", e))?; + Ok(Self { inner }) + } + + pub fn encode(&self, text: &str) -> Vec { + match self.inner.encode(text, false) { + Ok(encoding) => encoding.get_ids().to_vec(), + Err(e) => { + eprintln!("Error encoding text '{}': {}", text, e); + Vec::new() + } + } + } + + pub fn decode(&self, ids: &[u32]) -> String { + match self.inner.decode(ids, false) { + Ok(s) => s, + Err(e) => { + eprintln!("Error decoding ids: {}", e); + String::new() + } + } + } +} diff --git a/src/utils/voice_file.rs b/src/utils/voice_file.rs new file mode 100644 index 0000000..4fe1c4d --- /dev/null +++ b/src/utils/voice_file.rs @@ -0,0 +1,62 @@ +use serde::{Deserialize, Serialize}; +use std::fs::File; +use std::path::Path; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct VoiceFile { + /// Reference text corresponding to the audio features + #[serde(default)] + pub ref_text: String, + /// Extracted semantic codes from the Audio Encoder + #[serde(default)] + pub audio_codes: Vec, + /// Speaker embedding vector from the Speaker Encoder + #[serde(alias = "spk_emb")] + pub speaker_embedding: Vec, + + // Metadata + pub name: Option, + pub gender: Option, + pub age: Option, + pub description: Option, +} + +impl VoiceFile { + pub fn new(ref_text: String, audio_codes: Vec, speaker_embedding: Vec) -> Self { + Self { + ref_text, + audio_codes, + speaker_embedding, + name: None, + gender: None, + age: None, + description: None, + } + } + + pub fn with_metadata( + mut self, + name: Option, + gender: Option, + age: Option, + description: Option, + ) -> Self { + self.name = name; + self.gender = gender; + self.age = age; + self.description = description; + self + } + + pub fn load(path: impl AsRef) -> Result { + let file = File::open(path).map_err(|e| e.to_string())?; + let reader = std::io::BufReader::new(file); + serde_json::from_reader(reader).map_err(|e| e.to_string()) + } + + pub fn save(&self, path: impl AsRef) -> Result<(), String> { + let file = File::create(path).map_err(|e| e.to_string())?; + let writer = std::io::BufWriter::new(file); + serde_json::to_writer_pretty(writer, self).map_err(|e| e.to_string()) + } +} diff --git a/webui/audio-processor.js b/webui/audio-processor.js new file mode 100644 index 0000000..6a4b21b --- /dev/null +++ b/webui/audio-processor.js @@ -0,0 +1,80 @@ +// Audio Worklet Processor for real-time PCM playback +class AudioProcessor extends AudioWorkletProcessor { + constructor() { + super(); + // 使用环形缓冲区,更高效 + this.bufferSize = 24000 * 10; // 10秒缓冲 + this.buffer = new Float32Array(this.bufferSize); + this.writeIndex = 0; + this.readIndex = 0; + this.available = 0; + + // 淡入淡出参数 + this.fadeSamples = 48; // 2ms 淡入淡出(24000 * 0.002 = 48) + this.lastSample = 0; + this.isFirstChunk = true; + + // 缓冲区状态 + this.totalReceived = 0; + this.totalPlayed = 0; + this.isDraining = false; + + this.port.onmessage = (event) => { + const data = event.data; + if (data instanceof Float32Array) { + // 写入环形缓冲区,应用淡入淡出 + const fadeLen = Math.min(this.fadeSamples, data.length); + + for (let i = 0; i < data.length; i++) { + if (this.available < this.bufferSize) { + let sample = Math.max(-1, Math.min(1, data[i])); + + // 淡入:开头几帧从上一个样本平滑过渡 + if (i < fadeLen && !this.isFirstChunk) { + const fadeRatio = i / fadeLen; + sample = this.lastSample * (1 - fadeRatio) + sample * fadeRatio; + } + + this.buffer[this.writeIndex] = sample; + this.writeIndex = (this.writeIndex + 1) % this.bufferSize; + this.available++; + } + } + + // 保存最后一个样本用于下次淡入 + this.lastSample = data[data.length - 1]; + this.isFirstChunk = false; + this.totalReceived += data.length; + } else if (data === 'drain') { + // 标记为正在排空 + this.isDraining = true; + } + }; + } + + process(inputs, outputs, parameters) { + const output = outputs[0]; + const channel = output[0]; + + for (let i = 0; i < channel.length; i++) { + if (this.available > 0) { + channel[i] = this.buffer[this.readIndex]; + this.readIndex = (this.readIndex + 1) % this.bufferSize; + this.available--; + this.totalPlayed++; + } else { + channel[i] = 0; + } + } + + // 如果正在排空且缓冲区为空,通知主线程 + if (this.isDraining && this.available === 0) { + this.port.postMessage({ type: 'buffer_drained', played: this.totalPlayed, received: this.totalReceived }); + this.isDraining = false; + } + + return true; + } +} + +registerProcessor('audio-processor', AudioProcessor); diff --git a/webui/index.html b/webui/index.html new file mode 100644 index 0000000..c835b9e --- /dev/null +++ b/webui/index.html @@ -0,0 +1,631 @@ + + + + + + Qwen3-TTS WebUI + + + +
+

🎵 Qwen3-TTS WebUI

+ +
+

📝 文本输入

+
+ + +
+
+ + +
添加情感风格指令,留空则无
+
+
+ +
+

⚙️ 参数设置

+
+
+ + +
+
+ + +
越高越随机,0 为贪婪采样
+
+
+ + +
0 表示禁用
+
+
+ + +
1.0 表示禁用
+
+
+
+
+ + +
相同种子产生相同结果
+
+
+ + +
生成最大 token 数
+
+
+
+ +
+

🎵 生成音频

+
+ + +
+
+ + + +
+ + + +
+ +
+

📖 API 使用说明

+
+

HTTP API (非流式):

+

POST /api/tts

+

Body: {"text": "你好", "speaker": "vivian"}

+
+

WebSocket API (流式):

+

Connect to /api/tts/stream

+

Send: {"text": "你好", "speaker": "vivian"}

+

Receive: Binary audio data (f32 PCM, 24kHz)

+
+
+
+ + + +