Fix syntax errors in Mermaid diagrams
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
65
README.md
65
README.md
@@ -29,7 +29,7 @@
|
||||
|
||||
```mermaid
|
||||
graph TB
|
||||
subgraph "Основной цикл (app/main.py)"
|
||||
subgraph "Основной цикл"
|
||||
A[main() - основной цикл] --> B{Режим активации}
|
||||
B -->|Ожидание wake word| C[wait_for_wakeword()]
|
||||
B -->|Режим диалога| D[listen() в режиме follow-up]
|
||||
@@ -38,23 +38,22 @@ graph TB
|
||||
E --> F[Анализ команды]
|
||||
end
|
||||
|
||||
subgraph "Аудио подсистема (app/audio/)"
|
||||
C1[wakeword.py<br/>- wait_for_wakeword()<br/>- check_wakeword_once()]
|
||||
E1[stt.py<br/>- listen()<br/>- get_recognizer()]
|
||||
G1[tts.py<br/>- speak()<br/>- initialize()]
|
||||
H1[sound_level.py<br/>- parse_volume_text()<br/>- set_volume()]
|
||||
subgraph "Аудио подсистема"
|
||||
C1[wait_for_wakeword()<br/>wakeword.py<br/>check_wakeword_once()]
|
||||
E1[listen()<br/>stt.py<br/>get_recognizer()]
|
||||
G1[speak()<br/>tts.py<br/>initialize()]
|
||||
H1[parse_volume_text()<br/>sound_level.py<br/>set_volume()]
|
||||
|
||||
C1 -.-> E1
|
||||
E1 -.-> G1
|
||||
H1 -.-> G1
|
||||
end
|
||||
|
||||
subgraph "Ядро (app/core/)"
|
||||
F1[commands.py<br/>- is_stop_command()<br/>- _normalize_text()]
|
||||
F2[ai.py<br/>- ask_ai_stream()<br/>- translate_text()]
|
||||
F3[cleaner.py<br/>- clean_response()]
|
||||
F4[config.py<br/>- Настройки проекта]
|
||||
F5[smalltalk.py<br/>- get_smalltalk_response()]
|
||||
subgraph "Ядро"
|
||||
F1[is_stop_command()<br/>commands.py<br/>_normalize_text()]
|
||||
F2[ask_ai_stream()<br/>ai.py<br/>translate_text()]
|
||||
F3[clean_response()<br/>cleaner.py]
|
||||
F5[get_smalltalk_response()<br/>smalltalk.py]
|
||||
|
||||
F --> F1
|
||||
F --> F2
|
||||
@@ -62,13 +61,13 @@ graph TB
|
||||
F --> F5
|
||||
end
|
||||
|
||||
subgraph "Функции (app/features/)"
|
||||
I1[weather.py<br/>- get_weather_report()]
|
||||
I2[timer.py<br/>- get_timer_manager()]
|
||||
I3[alarm.py<br/>- get_alarm_clock()]
|
||||
I4[stopwatch.py<br/>- get_stopwatch_manager()]
|
||||
I5[music.py<br/>- get_music_controller()]
|
||||
I6[cities_game.py<br/>- get_cities_game()]
|
||||
subgraph "Функции"
|
||||
I1[get_weather_report()<br/>weather.py]
|
||||
I2[get_timer_manager()<br/>timer.py]
|
||||
I3[get_alarm_clock()<br/>alarm.py]
|
||||
I4[get_stopwatch_manager()<br/>stopwatch.py]
|
||||
I5[get_music_controller()<br/>music.py]
|
||||
I6[get_cities_game()<br/>cities_game.py]
|
||||
|
||||
F --> I1
|
||||
F --> I2
|
||||
@@ -138,7 +137,7 @@ graph TB
|
||||
```mermaid
|
||||
graph TD
|
||||
subgraph "Активация и распознавание"
|
||||
A[wakeword.py<br/>wait_for_wakeword()] --> B[stt.py<br/>listen()]
|
||||
A[wait_for_wakeword()<br/>wakeword.py] --> B[listen()<br/>stt.py]
|
||||
B --> C[Распознанный текст]
|
||||
end
|
||||
|
||||
@@ -147,21 +146,21 @@ graph TD
|
||||
end
|
||||
|
||||
subgraph "Обработка специфических команд"
|
||||
D -->|Small talk| E[smalltalk.py<br/>get_smalltalk_response()]
|
||||
D -->|Стоп команда| F[commands.py<br/>is_stop_command()]
|
||||
D -->|Таймер| G[timer.py<br/>parse_command()]
|
||||
D -->|Будильник| H[alarm.py<br/>parse_command()]
|
||||
D -->|Секундомер| I[stopwatch.py<br/>parse_command()]
|
||||
D -->|Громкость| J[sound_level.py<br/>parse_volume_text()<br/>set_volume()]
|
||||
D -->|Погода| K[weather.py<br/>get_weather_report()]
|
||||
D -->|Музыка| L[music.py<br/>parse_command()]
|
||||
D -->|Перевод| M[ai.py<br/>parse_translation_request()<br/>translate_text()]
|
||||
D -->|Города| N[cities_game.py<br/>handle()]
|
||||
D -->|Обычный вопрос| O[ai.py<br/>ask_ai_stream()]
|
||||
D -->|Small talk| E[get_smalltalk_response()<br/>smalltalk.py]
|
||||
D -->|Стоп команда| F[is_stop_command()<br/>commands.py]
|
||||
D -->|Таймер| G[parse_command()<br/>timer.py]
|
||||
D -->|Будильник| H[parse_command()<br/>alarm.py]
|
||||
D -->|Секундомер| I[parse_command()<br/>stopwatch.py]
|
||||
D -->|Громкость| J[parse_volume_text()<br/>sound_level.py<br/>set_volume()]
|
||||
D -->|Погода| K[get_weather_report()<br/>weather.py]
|
||||
D -->|Музыка| L[parse_command()<br/>music.py]
|
||||
D -->|Перевод| M[parse_translation_request()<br/>ai.py<br/>translate_text()]
|
||||
D -->|Города| N[handle()<br/>cities_game.py]
|
||||
D -->|Обычный вопрос| O[ask_ai_stream()<br/>ai.py]
|
||||
end
|
||||
|
||||
subgraph "Ответ пользователю"
|
||||
E --> P[cleaner.py<br/>clean_response()]
|
||||
E --> P[clean_response()<br/>cleaner.py]
|
||||
F --> P
|
||||
G --> P
|
||||
H --> P
|
||||
@@ -172,7 +171,7 @@ graph TD
|
||||
M --> P
|
||||
N --> P
|
||||
O --> P
|
||||
P --> Q[tts.py<br/>speak()]
|
||||
P --> Q[speak()<br/>tts.py]
|
||||
end
|
||||
|
||||
subgraph "Цикл управления"
|
||||
|
||||
Reference in New Issue
Block a user