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

Fb/estebanways #490

Merged
merged 58 commits into from
May 26, 2024
Merged

Fb/estebanways #490

merged 58 commits into from
May 26, 2024

Conversation

estebanways
Copy link
Member

Enhancing Commbase: A Comprehensive Overview

  • The repository underwent a merge from the main branch, likely incorporating crucial updates or feature additions.
  • Script descriptions were added to enhance clarity and usability.
  • New files were introduced to implement a command option for setting pyttsx3 TTS engine voice index and displaying voice index details.
  • Permissions were granted to specific files for execution purposes.
  • Automatic recording initiation was facilitated upon availability of the recorder device after a single key press.
  • Processing time calculation and display were integrated into the reactive STT engine, improving user visibility.
  • Enabling the visibility of processing time involved adjusting a configuration variable.
  • Optional serial hardware interaction was introduced, enhancing versatility.
  • A new option was added to display the full Commbase log in the apps pane, improving monitoring capabilities.
  • Several new routines and files were introduced, expanding functionality and organizational structure.
  • Logging processes underwent significant enhancements, including standardized formatting and improved timestamp handling.
  • Language files were updated to incorporate new phrases and translations.
  • Installation and configuration guides were updated to reflect changes and provide comprehensive instructions.
  • The restructuring of the project directory aimed to enhance clarity and organization.
  • Redundant or obsolete files were removed from the repository.
  • Lowercasing of local log variables likely aimed at standardizing coding practices.
  • The user guide was enriched with additional information about the apps pane, enhancing user understanding.
  • Overall, these changes signify a concerted effort to improve functionality, user experience, and code maintainability within the Commbase project.

…ions

Consolidating Changes from Original Repository

### Changes made in this repository

- Merge branch 'main' of github.com:estebanways/commbase
- Add script description
- Add new files libcommbase/interactive/terminal_set_pytts3_voice_index.sh, libcommbase/routines/display_any_pytts3_voice_index_details.py, and libcommbase/routines/display_total_number_of_pytts3_voice_indexes.py to implement new command option --set-pyttsx3-voice-index and be able to: set pyttsx3 TTS engine voice index, show current voice index, and display any pytts3 voice index details
- Give the file execution permissions
- Manage to automatically start recording when the recorder device is available after pressing the recording char key just one time
- Calculate and display the processing time in the reactive stt engine
- Change the STT_ENGINE_PROCESSING_TIME_VISIBLE_ON variable value to True to be able to calculate and display the processing time in the reactive stt engine
- Create optional serial hardware interaction with the reactive stt engine
- Add serial hardware related proactive stt engine file paths and functions to reactive stt engine
- Enable COMMBASE_HARDWARE_NOTIFICATIONS_ON to create serial hardware interaction with the reactive stt engine
- Add a new option --show-full-commbase-log to display the full Commbase log in the apps pane
- Add new file bundles/libcommbase/libcommbase/routines/assistant_discourse_with_external_capture_driving.sh
- Read the CHAT_LOG_FILE configuration variable without slash by adding the slash directly in the code
- Add the new terminal command --show-log-chat-log to display the log data/.chat_log.txt in the apps pane
- Remove the first slash from the variable CHAT_LOG_FILE to read the CHAT_LOG_FILE configuration variable without a slash
- Refactor the function toggle_capture_on-off.sh by writing logs to using the routines assistant_discourse and assistant_discourse_with_external_capture_driving instead of inner code
- Read the CHAT_LOG_FILE configuration variable without slash by adding the slash to the variable file_path
- Add the new discourses with keys default_microphone_is_mute_now and issue_with_the_microphone to the libcommbase translation files for toggle_capture_on-off.sh to used them
- Read the CHAT_LOG_FILE configuration variable without slash by adding the slash to the cp command
- Modify the assistant_discourse call and assistant_discourse.sh with the arguments: pane, i18n, origin, log_severity_level_1, and discourse_key to be able to standardize the log files content
- Read the CHAT_LOG_FILE configuration variable without slash by adding the slash to the function get_chat_log_file()
- Insert an empty line
- Modify the calls to the new version of the routine assistant_discourse.sh to comply with the standardization on how the chat participant's discourses are logged to the file data/.chat_log.txt
- Standardize how the chat participant's discourses are logged to the file data/.chat_log.txt using the log_severity_level_1. They look like this now: [2024-05-23 14:52:30] app: DEBUG: ✨ ASSISTANT: Mute the microphone to pause recording. [2024-05-23 14:52:47] stt-whisper-proactive: DEBUG: 🧑 END USER: Something about myself. The routine tail_chat_log.sh yet tailors the logs to show them in the chatroom
- Add more information about the apps pane to the User s Guide
- Add new routine log_command_with_timestamp.sh to create new command --show-log-commands to show log commands in the apps pane
- Lowercase local log variable
- Add the new option commbase --show-chatroom for the apps pane and reorganize the help menu
- Add new file tail_log_file.sh to create new commbase option 'commbase --show-log-messages'
- Reorganize project structure
- Log message with timestamp instead of with elapsed time
- Organize the content by index/key in alphabetical order
- Add i18n_number parameter for internationalization
- Create two separate routines based on log_message.sh: bundles/libcommbase/libcommbase/routines/log_message_with_elapsed_time.sh and bundles/libcommbase/libcommbase/routines/log_message_with_timestamp.sh
- Modify the libcommbase routine append_message_to_log_file.sh to log messages either to a specified log file or to the output and rename it as log_message.sh
- Add new libcommbase log_messages directory

### Changes by file

#### Update Installation Guide and Configuration

**Modifications:**
1. **INSTALL**
   - Added `bc` to required packages.
   - Updated installation commands.
   - Extended audio capture variable instructions.

2. **README.md**
   - Added `log_messages` directory.
   - Modified `scripts` directory structure.

3. **assets/docs/User's Guide.md**
   - Clarified Pane 1 functionality.
   - Enhanced logging configuration details.

4. **bundles/commbase-recorder-transmitter-b/reccomm.sh**
   - Added `CARD_INDEX` and `DEVICE_INDEX`.
   - Implemented audio device checks.
   - Improved cleanup function.

#### Refactor and enhance commbase STT whisper functionality

**Details:**
- Added timestamps to logs.
- Refactored logging functions.
- Improved hardware interaction.
- Added processing time visibility feature.

#### Added file_paths.py

**Details:**
- Fixed path construction in `get_chat_log_file`.
- Added functions for hardware paths.
- Updated `functions.py` with new functions.

#### Logging improvements and language file updates

**Details:**
- Added timestamp variable.
- Modified logging process.
- Removed redundant conditional blocks.
- Updated function call to `assistant_discourse`.

### Deleted Files

bundles/libcommbase/libcommbase/routines/append_message_to_log_file.sh

### New Files

bundles/libcommbase/libcommbase/interactive/terminal_set_pytts3_voice_index.sh
bundles/libcommbase/libcommbase/routines/assistant_discourse_with_external_capture_driving.sh
bundles/libcommbase/libcommbase/routines/display_any_pytts3_voice_index_details.py
bundles/libcommbase/libcommbase/routines/display_total_number_of_pytts3_voice_indexes.py
bundles/libcommbase/libcommbase/routines/log_command_with_timestamp.sh
bundles/libcommbase/libcommbase/routines/log_message_with_elapsed_time.sh
bundles/libcommbase/libcommbase/routines/log_message_with_timestamp.sh
bundles/libcommbase/libcommbase/routines/tail_log_file.sh

### Conclusion

These changes indicate a significant effort to enhance functionality, improve configuration options, and streamline logging processes within the Commbase project. The additions of new features, along with the structural and organizational improvements, mean a commitment to enhancing user experience and maintaining code clarity and efficiency.
@estebanways estebanways merged commit e54de7c into development May 26, 2024
8 checks passed
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.

None yet

1 participant