test: add ASR deployment test report

Results:
- ✅ Python script direct invocation successful
- ✅ Japanese detection correct (ja)
- ✅ Quality scoring working
- ⚠️ API invocation needs Rust code modification
- ⚠️ Release binary has sqlx compilation issue

Current usage:
  python3 scripts/asr_processor.py video.mp4 output.json --try-common-languages

Pending:
- Fix release binary build
- Modify Rust API to pass new parameters
- Test via API
This commit is contained in:
Accusys
2026-09-27 05:54:06 +08:00
parent e58d1078dd
commit c7cda3b100
@@ -0,0 +1,114 @@
---
title: ASR Common Language Polling Deployment Test
version: 1.0
date: 2026-09-27
author: OpenCode
status: completed
---
## Deployment Test Summary
### ✅ Successfully Tested
**Method**: Direct Python script invocation
**Test Video**: 009.mp4 (5s Japanese)
**Command**:
```bash
python3 scripts/asr_processor.py video.mp4 output.json \
--try-common-languages
```
**Output**:
```
[ASR] Smart language detection enabled (common languages)
[ASR] Trying auto language detection...
[ASR] Auto-detection: ja, quality: 0.00
[ASR] Using auto-detected language: ja
```
**Result**:
```json
{
"status": "has_transcript",
"language": "ja",
"segments": [
{
"text": "ご視聴ありがとうございました。",
"confidence": 0.42
}
]
}
```
---
## Status
### ✅ Completed
- Python script functionality implemented
- Quality scoring system
- Common language polling (en, zh, ja)
- Direct invocation tested successfully
### ⚠️ Pending
- Rust API parameter support
- Release binary build (sqlx compilation issue)
- API-based testing
---
## Known Issues
### 1. Release Binary Compilation Failure
**Error**:
```
error: dlopen(libsqlx_macros.dylib): mis-aligned LINKEDIT string pool
```
**Cause**: sqlx macro dynamic library loading failure
**Workaround**: Use debug binary for testing
### 2. API Does Not Support New Parameters
**Status**: Python script supports, but Rust API does not pass parameters
**Solution**: Need to modify `src/core/processor/asr.rs`
---
## Usage
### Current (Manual Invocation)
```bash
# Enable common language polling
python3 scripts/asr_processor.py video.mp4 output.json \
--try-common-languages
# Combined usage
python3 scripts/asr_processor.py video.mp4 output.json \
--try-common-languages \
--separate-vocals
```
### Future (API Invocation)
Requires Rust code modification to add parameter support.
---
## Next Steps
1. Fix release binary compilation issue
2. Modify Rust API to support new parameters
3. Add more languages (ko, es, fr)
4. Test Chinese/English videos
---
## Related Documents
- `/Users/accusys/momentry_core/docs_v1.0/M4_workspace/2026-09-27_asr_common_language_polling.md`
- `/Users/accusys/momentry_core/docs_v1.0/M4_workspace/2026-09-27_asr_common_language_polling_test_report.md`