Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Update whisper version and add extra models #31

Merged
merged 5 commits into from
Oct 21, 2024

Conversation

royshil
Copy link
Collaborator

@royshil royshil commented Oct 20, 2024

The audio processing delay calculation in the process_audio_from_buffer function has been updated. The duration of the audio processing is now compared to the remaining delay, and if it exceeds the delay, the delay is increased by 100 milliseconds. Otherwise, the delay is decreased by 100 milliseconds.

refactor: Update model information retrieval

The code for retrieving model information in the cleanstream_properties function has been updated. The loop that adds models to the list now uses the models_info() function instead of the models_info map directly.

refactor: Update whisper model update logic

The logic for updating the whisper model in the update_whisper_model function has been updated. The models_info() function is now used to check if the new model path exists in the models_info map. Additionally, the models_info().at(new_model_path) function is used to retrieve the model information.

refactor: Update model downloader types

The models_info map has been changed to a function models_info() that returns a constant reference to the map. The get_sorted_models_info function has also been added to retrieve a sorted vector of model information.

refactor: Update prebuilt whispercpp version

The prebuilt whispercpp version in the BuildWhispercpp.cmake file has been updated to version 0.0.7. The download URL has also been updated to the new repository location.

royshil and others added 5 commits October 20, 2024 17:58
The audio processing delay calculation in the `process_audio_from_buffer` function has been updated. The duration of the audio processing is now compared to the remaining delay, and if it exceeds the delay, the delay is increased by 100 milliseconds. Otherwise, the delay is decreased by 100 milliseconds.

refactor: Update model information retrieval

The code for retrieving model information in the `cleanstream_properties` function has been updated. The loop that adds models to the list now uses the `models_info()` function instead of the `models_info` map directly.

refactor: Update whisper model update logic

The logic for updating the whisper model in the `update_whisper_model` function has been updated. The `models_info()` function is now used to check if the new model path exists in the `models_info` map. Additionally, the `models_info().at(new_model_path)` function is used to retrieve the model information.

refactor: Update model downloader types

The `models_info` map has been changed to a function `models_info()` that returns a constant reference to the map. The `get_sorted_models_info` function has also been added to retrieve a sorted vector of model information.

refactor: Update prebuilt whispercpp version

The prebuilt whispercpp version in the `BuildWhispercpp.cmake` file has been updated to version 0.0.7. The download URL has also been updated to the new repository location.
This commit adds the file model-find-utils.cpp to the model-utils directory. This file is responsible for finding model folders. It is necessary for the functionality of the application.

Co-authored-by: locaal-ai <locaal-ai@example.com>
@royshil royshil merged commit 70071b2 into main Oct 21, 2024
9 checks passed
@royshil royshil deleted the roy.bump_versions_add_models branch October 21, 2024 01:05
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.

1 participant