huge commit. assistant code is now semifunctional
This commit is contained in:
61
frontend/core_test.ipynb
Normal file
61
frontend/core_test.ipynb
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from core import Core\n",
|
||||
"\n",
|
||||
"core = Core(whisper_model_name = \"large-v3\")\n",
|
||||
"\n",
|
||||
"core.set_order_settings(\n",
|
||||
" phone_number = 123456789,\n",
|
||||
" order_items = \"1x margharitta\\n2x sos majonezowy\",\n",
|
||||
" delivery_address = \"ul. Amogusowa 1337, Suski Małe\"\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"core.set_speech_recog_settings(\n",
|
||||
" speech_recog_timeout = 2.5,\n",
|
||||
" audio_input_device_name = \"Virtual\",\n",
|
||||
" audio_output_device_name = \"placeholder\",\n",
|
||||
" window_size_sec = 0.1,\n",
|
||||
" vad_threshold = 0.6,\n",
|
||||
" min_silence_duration_ms = 150,\n",
|
||||
" speech_pad_ms = 0\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"core.set_tts_settings(\n",
|
||||
" speaker_wav = \"voices/lector.wav\"\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"try:\n",
|
||||
" core.assistant_start()\n",
|
||||
"except (KeyboardInterrupt, SystemExit):\n",
|
||||
" core.assistant_stop()"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
Reference in New Issue
Block a user