Add support for Typhoon ASR Real-Time model with transcribe() function#19
Draft
Add support for Typhoon ASR Real-Time model with transcribe() function#19
Conversation
Co-authored-by: wannaphong <8536487+wannaphong@users.noreply.github.com>
Co-authored-by: wannaphong <8536487+wannaphong@users.noreply.github.com>
Co-authored-by: wannaphong <8536487+wannaphong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for Typhoon ASR Real-Time model
Add support for Typhoon ASR Real-Time model
Jan 31, 2026
Member
|
@copilot Add ASR Real-Time Inference |
Co-authored-by: wannaphong <8536487+wannaphong@users.noreply.github.com>
…d timestamp warnings Co-authored-by: wannaphong <8536487+wannaphong@users.noreply.github.com>
Contributor
Author
Added Example usage: from pythaiasr import transcribe
result = transcribe("audio.wav", with_timestamps=True)
print(result['text'])
for ts in result['timestamps']:
print(f"{ts['word']}: {ts['start']:.2f}s - {ts['end']:.2f}s")Commit: 0ea8e24 |
Copilot
AI
changed the title
Add support for Typhoon ASR Real-Time model
Add support for Typhoon ASR Real-Time model with transcribe() function
Jan 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
scb10x/typhoon-asr-realtimemodel support to pythaiasr with comprehensive real-time inference capabilities.Changes
Model integration: Added Typhoon ASR to supported models list. Uses NVIDIA NeMo toolkit instead of HuggingFace transformers (existing models unaffected).
Audio processing: Typhoon models require different handling:
np.max(np.abs(data))transcribe()APIReal-time inference function: Added new
transcribe()function specifically for Typhoon ASR models that provides:Dependencies: Added optional
[typhoon]extra withnemo-toolkit[asr]>=1.21.0andlibrosaError handling: Raises informative ImportError when nemo-toolkit is missing, directing users to install via
pip install pythaiasr[typhoon]Tests: Added unit tests for model listing, import error handling, and the new
transcribe()function. Integration tests available viaTEST_TYPHOON_ASR=trueenv var.Usage
Basic ASR (string output)
Real-time inference with detailed output
Installation requires the typhoon extra:
Note: Timestamps are estimated by uniformly distributing words across the audio duration and may not reflect actual word timing in natural speech with pauses or variable rates.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.