Skip to content

Conversation

@ftnext
Copy link
Collaborator

@ftnext ftnext commented May 20, 2025

No description provided.

@ftnext ftnext requested a review from Copilot May 20, 2025 00:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Vosk model download and loading workflow to store the model in the package's "models/vosk" directory and improve error handling.

  • Recognizers now use pathlib for model path resolution and raise a SetupError if the model is not found.
  • The CLI is updated to download the model directly into the package’s designated "models/vosk" directory.
  • The models directory is now fully ignored via .gitignore, preserving only the .gitignore file itself.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
speech_recognition/recognizers/vosk.py Updated model path resolution using pathlib and raised SetupError on missing model
speech_recognition/models/.gitignore Configured to ignore all files except .gitignore
speech_recognition/cli.py Adjusted CLI to download the Vosk model to the package’s models/vosk directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants