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

Version 1.1-A4 #112

Merged
merged 13 commits into from
Jul 9, 2024
Merged

Version 1.1-A4 #112

merged 13 commits into from
Jul 9, 2024

Conversation

cyberofficial
Copy link
Owner

@cyberofficial cyberofficial commented Jul 8, 2024

Changelog

Remote Microphone Server (Start of 1.1)

  • Remote Microphone Server
  • Fixed an issue where the stream module would show blank text if nothing is said.
  • RMS Password Protected
  • Made the stream module Multi-Threaded
  • GUI updated to suit the HLS password system
  • Fixed some issues with latency

Ignore sending data to API if data is empty

  • Will not update API call if data is empty.

Journey to 1.1

  • Remote Microphone Server
  • RMS Password Protected
  • Made the stream module Multi-Threaded
  • GUI updated to suit the HLS password system

GUI Wrapper Update

  • Added save functionality for HLS additional elements
  • Added icons to bring up GitHub or Itch easily.
  • Unchecks wipe setting checkbox if user canceled the wipe.

Fixed minor error

  • Forgot to remove a sleep timer from processing audio oops.

Fix Win 2 Error For Portable Version [temporary]

  • Fixed an issue where Win 2 Error would happen with the portable version, temporary fix. More better
  • New UI Style (Experimenting with styling)

Remote Microphone update and Stream Module Update

Improvements:

  • Enhanced Error Handling and Retries in Downloading Segments:
    • Improved the download_segment function in stream_transcription_module.py to include more robust error handling and retries for downloading segments.
    • Added a max_retries parameter to the download_segment function to specify the number of retry attempts.
    • The function now handles requests.exceptions.RequestException specifically for network-related errors, providing more informative error messages.
    • Implemented a retry mechanism with an optional retry_delay to handle temporary network issues.
    • Added error handling for http.client.IncompleteRead exceptions, which can occur if the connection drops during download.
  • Improved M3U8 Playlist Loading:
    • The load_m3u8_with_retry function in stream_transcription_module.py has been enhanced to retry loading the M3U8 playlist file if there are errors, making it more resilient to network fluctuations.
    • The function now handles potential requests.exceptions.RequestException and http.client.IncompleteRead errors during playlist loading, retrying with a delay until successful.
  • Optimized Segment Downloading and Skipping Logic:
    • Streamlined the segment downloading logic to avoid re-downloading already processed segments, improving efficiency.
    • Modified the code to skip segments that have already been downloaded successfully, preventing unnecessary downloads.
  • Prep for native audio capture support
    • Added sounddevice, soundfile, and pydub to requirements.txt for audio capture. Will be using a more native way to capture audio better.
  • GUI Improvements
    • Adjusted vertical spacing for headers in player.html to address potential overlapping issues. This change ensures better visual clarity and prevents elements from overlapping, enhancing the user interface.

Bug Fixes:

  • Fixed Issue with Segment Downloading in stream_transcription_module.py:
    • Resolved a bug where the code was not properly skipping already downloaded segments in certain situations. This fix ensures that only new segments are downloaded instead of trying to decode broken audio files, improving efficiency. Fixes recording with microphone server fails #108
  • Fixed Issue with Incorrect HLS Flags in remote_microphone.py:
    • Corrected the HLS flags used in the FFmpeg command in remote_microphone.py. This change ensures that the generated HLS playlist is created correctly, addressing potential issues with live stream playback.

Lock numpy to version 1.26.4

Update README.md

Version Bump

Additional Fixes

- Remote Microphone Server
- Fixed an issue where stream module will show blank text if nothing is said.
- Will not update API call if data is empty.
- Remote Microphone Server
- RMS Password Protected
- Made the stream module Multi-Threaded
- GUI updated to suit the HLS password system
- Fixed some issues with latency
- Added save functionality for HLS additional elements
- Forgot to remove a sleep timer from processing audio oops.
* Fixed an issue where Win 2 Error would happen with portable version, temporary fix. More better

* New UI Style (Experimenting with styling)
* Added icons to bring up github or itch easily.
* Unchecks wipe setting checkbox if user canceled the wipe.
**Improvements:**

- **Enhanced Error Handling and Retries in Downloading Segments:**
    - Improved the `download_segment` function in `stream_transcription_module.py` to include more robust error handling and retries for downloading segments.
    - Added a `max_retries` parameter to the `download_segment` function to specify the number of retry attempts.
    - The function now handles `requests.exceptions.RequestException` specifically for network-related errors, providing more informative error messages.
    - Implemented a retry mechanism with an optional `retry_delay` to handle temporary network issues.
    - Added error handling for `http.client.IncompleteRead` exceptions, which can occur if the connection drops during download.
- **Improved M3U8 Playlist Loading:**
    - The `load_m3u8_with_retry` function in `stream_transcription_module.py` has been enhanced to retry loading the M3U8 playlist file if there are errors, making it more resilient to network fluctuations.
    - The function now handles potential `requests.exceptions.RequestException` and `http.client.IncompleteRead` errors during playlist loading, retrying with a delay until successful.
- **Optimized Segment Downloading and Skipping Logic:**
    - Streamlined the segment downloading logic to avoid re-downloading already processed segments, improving efficiency.
    - Modified the code to skip segments that have already been downloaded successfully, preventing unnecessary downloads.
- **Prep for native audio capture support**
    - Added `sounddevice`, `soundfile`, and `pydub` to requirements.txt for audio capture. Will be using a more native way to capture audio better.
- **GUI Improvements**
    - Adjusted vertical spacing for headers in `player.html` to address potential overlapping issues. This change ensures better visual clarity and prevents elements from overlapping, enhancing the user interface.

**Bug Fixes:**

- **Fixed Issue with Segment Downloading in `stream_transcription_module.py`:**
    - Resolved a bug where the code was not properly skipping already downloaded segments in certain situations. This fix ensures that only new segments are downloaded instead of trying to decode broken audio files, improving efficiency. Fixes #108
- **Fixed Issue with Incorrect HLS Flags in `remote_microphone.py`:**
    - Corrected the HLS flags used in the FFmpeg command in `remote_microphone.py`. This change ensures that the generated HLS playlist is created correctly, addressing potential issues with live stream playback.
Fixes #111 - Lock `numpy` to version 1.26.4
@cyberofficial cyberofficial self-assigned this Jul 8, 2024
@cyberofficial cyberofficial added dependencies Pull requests that update a dependency file PR Forward labels Jul 8, 2024
* Sets a reminder to change port number before using #107
@cyberofficial cyberofficial marked this pull request as ready for review July 9, 2024 22:45
@cyberofficial cyberofficial merged commit 78c3b58 into master Jul 9, 2024
2 checks passed
@cyberofficial cyberofficial deleted the bleeding-under-work branch July 9, 2024 22:48
@cyberofficial cyberofficial restored the bleeding-under-work branch July 9, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix dependencies Pull requests that update a dependency file PR Forward
1 participant