Skip to content

Commit afa5da6

Browse files
authored
docs(deploy): verify realtime v1.4.2 quickstart (#3511)
Signed-off-by: LauraGPT <170200537+LauraGPT@users.noreply.github.com>
1 parent 16c31c0 commit afa5da6

3 files changed

Lines changed: 29 additions & 4 deletions

File tree

web-pages/product-site/data/deployments.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,14 @@
506506
"models": ["Paraformer-online", "FSMN-VAD", "CT-Transformer punctuation", "Fun-ASR-Nano realtime"],
507507
"operating_systems": ["Linux"],
508508
"interfaces": ["WebSocket", "Python client", "C++ client", "Go client"],
509-
"tested": {"funasr": "1.3.29", "runtime": "Python and C++ WebSocket runtimes", "verified": "2026-07-26"},
509+
"tested": {"funasr": "1.4.2", "runtime": "FunASR v1.4.2 Python WebSocket runtime", "verified": "2026-08-17"},
510510
"commands": {
511-
"install": ["pip install funasr websockets ffmpeg-python"],
512-
"launch": ["cd runtime/python/websocket && python funasr_wss_server.py --port 10095"],
511+
"install": ["python -m pip install -U \"funasr==1.4.2\"", "git clone --branch v1.4.2 --depth 1 https://github.com/modelscope/FunASR.git && python -m pip install -r FunASR/runtime/python/websocket/requirements_server.txt"],
512+
"launch": ["cd FunASR/runtime/python/websocket && python funasr_wss_server.py --port 10095"],
513513
"health": ["ss -ltn | grep 10095"],
514-
"smoke": ["cd runtime/python/websocket && python funasr_wss_client.py --host 127.0.0.1 --port 10095 --mode 2pass --chunk_size \"8,8,4\" --audio_in ../../tests/test_audio/zh.wav"]
514+
"smoke": ["cd FunASR/runtime/python/websocket && python funasr_wss_client.py --host 127.0.0.1 --port 10095 --mode 2pass --chunk_size \"8,8,4\" --audio_in ../../funasr_api/asr_example.wav"]
515515
},
516+
"source_url": "/go/github",
516517
"evidence": [
517518
{"label": "Python WebSocket runtime", "url": "https://github.com/modelscope/FunASR/blob/main/runtime/python/websocket/README.md"},
518519
{"label": "WebSocket protocol", "url": "https://github.com/modelscope/FunASR/blob/main/runtime/docs/websocket_protocol.md"},

web-pages/product-site/templates/deploy-detail.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ <h1>{{ copy.name }}</h1>
99
<div class="detail-actions">
1010
<a class="button button-primary" href="#commands">{{ '开始部署' if language == 'zh' else 'Start deployment' }}</a>
1111
<a class="button button-secondary" href="{{ '/benchmarks.html' if language == 'zh' else '/en/benchmarks.html' }}">{{ '查看基准口径' if language == 'zh' else 'Review benchmark method' }}</a>
12+
{% if entry.get('source_url') %}<a class="text-link" href="{{ entry.source_url }}">{{ '查看实时源码' if language == 'zh' else 'View realtime source' }} <img src="{{ assets['lucide/arrow-right.svg'] }}" alt=""></a>{% endif %}
1213
</div>
1314
</div>
1415
<dl class="detail-meta">

web-pages/product-site/tests/test_output.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,29 @@ def test_detail_commands_come_from_registry(built_site):
128128
assert command in rendered
129129

130130

131+
def test_realtime_page_publishes_verified_v142_quickstart(built_site):
132+
registry = load_registry(SITE_ROOT / 'data' / 'deployments.json')
133+
entry = next(item for item in registry['deployments'] if item['id'] == 'realtime')
134+
commands = '\n'.join(
135+
command
136+
for group in ('install', 'launch', 'smoke')
137+
for command in entry['commands'][group]
138+
)
139+
140+
assert entry['tested']['funasr'] == '1.4.2'
141+
assert entry['tested']['verified'] == '2026-08-17'
142+
assert 'git clone --branch v1.4.2 --depth 1' in commands
143+
assert 'runtime/python/websocket/requirements_server.txt' in commands
144+
assert 'cd FunASR/runtime/python/websocket && python funasr_wss_server.py' in commands
145+
assert '../../funasr_api/asr_example.wav' in commands
146+
assert 'tests/test_audio/zh.wav' not in commands
147+
148+
for relative in ('deploy/realtime.html', 'en/deploy/realtime.html'):
149+
soup = read_soup(built_site / relative)
150+
source = soup.select_one('.detail-actions a[href="/go/github"]')
151+
assert source
152+
153+
131154
@pytest.mark.parametrize(
132155
('relative', 'boundary'),
133156
(

0 commit comments

Comments
 (0)