Skip to content

v0.1.7

  • v0.1.7
  • 5946ea4
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
  • Choose a tag to compare

  • v0.1.7
  • 5946ea4
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
@yoavsraya yoavsraya tagged this 26 Jun 12:02
* Refactor AiolaSttClient: Improve code readability and maintainability

- Reorganized imports and removed unused ones.
- Enhanced logging format for consistency.
- Refactored methods for better clarity and structure, including connect, start_recording, and transcribe_file.
- Introduced _silence_padding method to handle audio chunking more effectively.
- Added tests for silence padding functionality and edge cases.

This refactor adheres to the project's principles of simplicity and maintainability while ensuring existing functionality remains intact.

* Update client.py

* Update client.py

* Update silence padding functionality in AiolaSttClient

- Increased silence padding from 250ms to 500ms in the _silence_padding method to improve audio chunking.
- Updated related test cases to reflect the new silence duration and removed the now-unnecessary _save_padded_audio_for_testing method.
- Ensured all tests pass with the new padding logic.

This change enhances the audio processing capabilities while maintaining code clarity and adherence to project principles.

* Refactor silence padding implementation in AiolaSttClient

- Introduced a constant for silence duration (SILENCE_DURATION_MS) to improve code clarity and maintainability.
- Updated the silence padding logic to use the new constant instead of hardcoded values, enhancing readability.
- Ensured consistent use of silence byte representation for padding.

This change aligns with project principles by simplifying the code and improving maintainability while preserving existing functionality.

* Update dependencies and script paths

- Updated the aiola-stt dependency version from 0.1.6 to 0.1.7 in the examples/stt/pyproject.toml file to ensure compatibility with the latest features and fixes.
- Updated the version of the aiola_stt package from 0.1.6 to 0.1.7 in the libs/speech_to_text/aiola_stt/pyproject.toml file for consistency.
- Modified script paths in run_cov.sh and run_tests.sh to reference the correct build_dev.sh location, improving script reliability.

These changes enhance the project's dependency management and script execution consistency while adhering to project principles.

---------

Co-authored-by: giladAiola <gilad.or@aiola.com>
Co-authored-by: giladOr <gilad.or@uprightpose.com>
Assets 2
Loading