@@ -114,6 +114,7 @@ assert_readme_quickstart() {
114114 local section_prefix=$2
115115 local section
116116 local quickstart
117+ local powershell
117118
118119 if ! section=$( awk -v prefix=" $section_prefix " '
119120 !found && index($0, prefix) == 1 { found = 1 }
@@ -135,6 +136,16 @@ assert_readme_quickstart() {
135136 exit 1
136137 fi
137138
139+ if ! powershell=$( printf ' %s\n' " $section " | awk '
140+ !seen && /^```powershell$/ { seen = 1; in_block = 1; next }
141+ in_block && /^```$/ { complete = 1; exit }
142+ in_block { print }
143+ END { if (!seen || !complete) exit 1 }
144+ ' ) ; then
145+ printf ' missing PowerShell quickstart block in %s\n' " $readme " >&2
146+ exit 1
147+ fi
148+
138149 if ! grep -F " bash download-funasr-model.sh sensevoice ./gguf" <<< " $quickstart" > /dev/null; then
139150 printf ' missing default SenseVoice download command in %s\n' " $readme " >&2
140151 exit 1
@@ -143,7 +154,15 @@ assert_readme_quickstart() {
143154 printf ' README command does not run the default sensevoice-small-q8.gguf in %s\n' " $readme " >&2
144155 exit 1
145156 fi
146- if ! grep -F " .\\ pkg\\ llama-funasr-sensevoice.exe -m .\\ gguf\\ $DEFAULT_SENSEVOICE_MODEL --vad .\\ gguf\\ fsmn-vad.gguf -a audio.wav" <<< " $section" > /dev/null; then
157+ if ! grep -F " hf download FunAudioLLM/SenseVoiceSmall-GGUF $DEFAULT_SENSEVOICE_MODEL --local-dir .\\ gguf" <<< " $powershell" > /dev/null; then
158+ printf ' missing Windows SenseVoice download command in %s\n' " $readme " >&2
159+ exit 1
160+ fi
161+ if ! grep -F ' hf download FunAudioLLM/fsmn-vad-GGUF fsmn-vad.gguf --local-dir .\gguf' <<< " $powershell" > /dev/null; then
162+ printf ' missing Windows FSMN-VAD download command in %s\n' " $readme " >&2
163+ exit 1
164+ fi
165+ if ! grep -F " .\\ llama-funasr-sensevoice.exe -m .\\ gguf\\ $DEFAULT_SENSEVOICE_MODEL --vad .\\ gguf\\ fsmn-vad.gguf -a audio.wav" <<< " $powershell" > /dev/null; then
147166 printf ' missing Windows PowerShell quickstart in %s\n' " $readme " >&2
148167 exit 1
149168 fi
0 commit comments