Skip to content

Commit 5716c4e

Browse files
committed
add lang
1 parent 9131e4b commit 5716c4e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
| PsyFlow Version | 0.1.0 |
1212
| PsychoPy Version | 2025.1.1 |
1313
|Modality | Behavior/EEG |
14+
| Language | Chinese |
15+
| Voice Name | zh-CN-YunyangNeural |
1416

1517
## 1. Task Overview
1618

config/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ window:
4646
# === Task-level settings ===
4747
task:
4848
task_name: "eeg_sst"
49+
language: "Chinese"
50+
voice_name: "zh-CN-YunyangNeural"
4951
total_blocks: 3
5052
total_trials: 210
5153
trial_per_block: 70

main.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
win, kb = initialize_exp(settings)
3434
# 6. Setup stimulus bank
3535
stim_bank = StimBank(win,cfg['stim_config'])\
36-
.convert_to_voice(['instruction_text'])\
36+
.convert_to_voice(['instruction_text'], voice=settings.voice_name)\
3737
.preload_all()
3838

3939
# stim_bank.preview_all()
@@ -100,7 +100,4 @@
100100

101101
# 10. Close everything
102102
ser.close()
103-
core.quit()
104-
105-
106-
103+
core.quit()

0 commit comments

Comments
 (0)