Text-to-Speech
Transformers
ONNX
GGUF
Chinese
English
voice-dialogue
speech-recognition
large-language-model
asr
tts
llm
chinese
english
real-time
conversational
Instructions to use MoYoYoTech/VoiceDialogue with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MoYoYoTech/VoiceDialogue with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="MoYoYoTech/VoiceDialogue") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MoYoYoTech/VoiceDialogue", dtype="auto") - llama-cpp-python
How to use MoYoYoTech/VoiceDialogue with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="MoYoYoTech/VoiceDialogue", filename="assets/models/llm/qwen/Qwen3-8B-Q6_K.gguf", )
llm.create_chat_completion( messages = "\"The answer to the universe is 42\"" )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use MoYoYoTech/VoiceDialogue with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: llama-cli -hf MoYoYoTech/VoiceDialogue:Q6_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: llama-cli -hf MoYoYoTech/VoiceDialogue:Q6_K
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: ./llama-cli -hf MoYoYoTech/VoiceDialogue:Q6_K
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf MoYoYoTech/VoiceDialogue:Q6_K
Use Docker
docker model run hf.co/MoYoYoTech/VoiceDialogue:Q6_K
- LM Studio
- Jan
- Ollama
How to use MoYoYoTech/VoiceDialogue with Ollama:
ollama run hf.co/MoYoYoTech/VoiceDialogue:Q6_K
- Unsloth Studio new
How to use MoYoYoTech/VoiceDialogue with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MoYoYoTech/VoiceDialogue to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MoYoYoTech/VoiceDialogue to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MoYoYoTech/VoiceDialogue to start chatting
- Pi new
How to use MoYoYoTech/VoiceDialogue with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf MoYoYoTech/VoiceDialogue:Q6_K
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MoYoYoTech/VoiceDialogue:Q6_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use MoYoYoTech/VoiceDialogue with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf MoYoYoTech/VoiceDialogue:Q6_K
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default MoYoYoTech/VoiceDialogue:Q6_K
Run Hermes
hermes
- Docker Model Runner
How to use MoYoYoTech/VoiceDialogue with Docker Model Runner:
docker model run hf.co/MoYoYoTech/VoiceDialogue:Q6_K
- Lemonade
How to use MoYoYoTech/VoiceDialogue with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MoYoYoTech/VoiceDialogue:Q6_K
Run and chat with the model
lemonade run user.VoiceDialogue-Q6_K
List all available models
lemonade list
liumaolin commited on
Commit ·
5bc3ef8
1
Parent(s): 5cf0dbe
Add echo cancellation toggle in UI and update project dependencies
Browse files- Implement `echoCancel` toggle in the settings store and Welcome view.
- Add echo cancellation switch to the submission form.
- Rename project to `VoiceDialogue` in `package.json`.
- Update Pinia, Vue, Vite, and other frontend dependencies.
frontend/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f33821c7f31c395ea13fb858f87561c2e01f75eadfb9c07c8036b76ea7875750
|
| 3 |
+
size 1213
|
frontend/src/stores/config.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
|
| 2 |
import { defineStore } from 'pinia';
|
| 3 |
|
| 4 |
|
|
@@ -10,6 +9,7 @@ export const useSettingsStore = defineStore({
|
|
| 10 |
role: '',
|
| 11 |
language: 'zh',
|
| 12 |
sider_open: true,
|
|
|
|
| 13 |
}
|
| 14 |
},
|
| 15 |
actions: {
|
|
|
|
|
|
|
| 1 |
import { defineStore } from 'pinia';
|
| 2 |
|
| 3 |
|
|
|
|
| 9 |
role: '',
|
| 10 |
language: 'zh',
|
| 11 |
sider_open: true,
|
| 12 |
+
echoCancel: true,
|
| 13 |
}
|
| 14 |
},
|
| 15 |
actions: {
|
frontend/src/views/Welcome/index.vue
CHANGED
|
@@ -42,10 +42,11 @@ const startAudioChat = async () => {
|
|
| 42 |
headers: {
|
| 43 |
'Content-Type': 'application/json',
|
| 44 |
},
|
| 45 |
-
body:
|
|
|
|
|
|
|
| 46 |
});
|
| 47 |
if (!response.ok) {
|
| 48 |
-
|
| 49 |
throw new Error(`HTTP error! status: ${response.status}`);
|
| 50 |
}
|
| 51 |
const data = await response.json();
|
|
@@ -70,8 +71,10 @@ const handleCancel = () => {
|
|
| 70 |
const handleSubmit = async () => {
|
| 71 |
console.log('Selected Language:', language.value);
|
| 72 |
console.log('Selected Role:', role.value);
|
|
|
|
| 73 |
settingsStore.$state.language = language.value;
|
| 74 |
settingsStore.$state.role = role.value || '';
|
|
|
|
| 75 |
|
| 76 |
await pushConfig(settingsStore.$state.role);
|
| 77 |
};
|
|
@@ -134,6 +137,8 @@ const languageOptions = {
|
|
| 134 |
};
|
| 135 |
const role = ref<string>(settingsStore.$state.role || '');
|
| 136 |
const roles = reactive([])
|
|
|
|
|
|
|
| 137 |
const radioStyle = reactive({
|
| 138 |
display: 'flex',
|
| 139 |
height: '48px',
|
|
@@ -155,6 +160,10 @@ const fetchTTSRoles = async () => {
|
|
| 155 |
// @ts-ignore
|
| 156 |
roles.splice(0, data.length, ...data.models)
|
| 157 |
console.log('Fetched TTS Roles:', roles);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
}
|
| 159 |
} catch (error) {
|
| 160 |
console.error('Error fetching TTS roles:', error);
|
|
@@ -169,6 +178,10 @@ const fetchASRLanguages = async () => {
|
|
| 169 |
// @ts-ignore
|
| 170 |
languages.splice(0, languages.length, ...data.languages);
|
| 171 |
console.log('Fetched ASR Languages:', data.languages);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
}
|
| 173 |
} catch (error) {
|
| 174 |
console.error('Error fetching ASR languages:', error);
|
|
@@ -218,6 +231,14 @@ const toggleSider = () => {
|
|
| 218 |
<a-button key="back" @click="handleCancel">Cancel</a-button>
|
| 219 |
<a-button key="submit" type="primary" :loading="modalLoading" @click="handleSubmit">Submit</a-button>
|
| 220 |
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
<div class="languages">
|
| 222 |
<div class="language-item">
|
| 223 |
<p>Select Language:</p>
|
|
|
|
| 42 |
headers: {
|
| 43 |
'Content-Type': 'application/json',
|
| 44 |
},
|
| 45 |
+
body: JSON.stringify({
|
| 46 |
+
enable_echo_cancellation: echoCancel.value
|
| 47 |
+
})
|
| 48 |
});
|
| 49 |
if (!response.ok) {
|
|
|
|
| 50 |
throw new Error(`HTTP error! status: ${response.status}`);
|
| 51 |
}
|
| 52 |
const data = await response.json();
|
|
|
|
| 71 |
const handleSubmit = async () => {
|
| 72 |
console.log('Selected Language:', language.value);
|
| 73 |
console.log('Selected Role:', role.value);
|
| 74 |
+
console.log('Echo Cancel:', echoCancel.value);
|
| 75 |
settingsStore.$state.language = language.value;
|
| 76 |
settingsStore.$state.role = role.value || '';
|
| 77 |
+
settingsStore.$state.echoCancel = echoCancel.value;
|
| 78 |
|
| 79 |
await pushConfig(settingsStore.$state.role);
|
| 80 |
};
|
|
|
|
| 137 |
};
|
| 138 |
const role = ref<string>(settingsStore.$state.role || '');
|
| 139 |
const roles = reactive([])
|
| 140 |
+
const echoCancel = ref<boolean>(settingsStore.$state.echoCancel ?? true);
|
| 141 |
+
|
| 142 |
const radioStyle = reactive({
|
| 143 |
display: 'flex',
|
| 144 |
height: '48px',
|
|
|
|
| 160 |
// @ts-ignore
|
| 161 |
roles.splice(0, data.length, ...data.models)
|
| 162 |
console.log('Fetched TTS Roles:', roles);
|
| 163 |
+
|
| 164 |
+
if (data.current_model_id) {
|
| 165 |
+
role.value = data.current_model_id;
|
| 166 |
+
}
|
| 167 |
}
|
| 168 |
} catch (error) {
|
| 169 |
console.error('Error fetching TTS roles:', error);
|
|
|
|
| 178 |
// @ts-ignore
|
| 179 |
languages.splice(0, languages.length, ...data.languages);
|
| 180 |
console.log('Fetched ASR Languages:', data.languages);
|
| 181 |
+
|
| 182 |
+
if (data.current_asr_language) {
|
| 183 |
+
language.value = data.current_asr_language;
|
| 184 |
+
}
|
| 185 |
}
|
| 186 |
} catch (error) {
|
| 187 |
console.error('Error fetching ASR languages:', error);
|
|
|
|
| 231 |
<a-button key="back" @click="handleCancel">Cancel</a-button>
|
| 232 |
<a-button key="submit" type="primary" :loading="modalLoading" @click="handleSubmit">Submit</a-button>
|
| 233 |
</template>
|
| 234 |
+
<div class="languages">
|
| 235 |
+
<div class="echo-cancel-item">
|
| 236 |
+
<div style="display: flex; justify-content: space-between; align-items: center;">
|
| 237 |
+
<p style="margin: 0;">Enable Echo Cancellation:</p>
|
| 238 |
+
<a-switch v-model:checked="echoCancel" />
|
| 239 |
+
</div>
|
| 240 |
+
</div>
|
| 241 |
+
</div>
|
| 242 |
<div class="languages">
|
| 243 |
<div class="language-item">
|
| 244 |
<p>Select Language:</p>
|