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

feat/track_speaking+recording_per_session #93

Merged
merged 1 commit into from
May 3, 2024

Conversation

JarbasAl
Copy link
Member

@JarbasAl JarbasAl commented May 1, 2024

brings back is_speaking and wait_while_speaking per Session

enables OpenVoiceOS/OVOS-workshop#190

skill/plugin side we can now do

sess = SessionManager.get(message)
print(sess.is_speaking)
print(sess.is_recording)
SessionManager.wait_while_speaking(sess=sess, timeout=15)
SessionManager.wait_while_recording(sess=sess, timeout=60)

enables HiveMind integration, HiveMind should whitelist the output_start/end messages for voice sats to work

$hivemind-core allow-msg "recognizer_loop:record_begin"
$hivemind-core allow-msg "recognizer_loop:record_end"
$hivemind-core allow-msg "recognizer_loop:audio_output_start"
$hivemind-core allow-msg "recognizer_loop:audio_output_end"

https://github.com/JarbasHiveMind/HiveMind-core/pull/85 avoids the need to configure devices individually HM side

keep track of is_speaking and is_recording per session

brings back `is_speaking` and `wait_while_speaking` per Session, allowing HiveMind integration
@JarbasAl JarbasAl added the enhancement New feature or request label May 1, 2024
@JarbasAl JarbasAl requested review from goldyfruit and a team May 1, 2024 21:46
JarbasAl added a commit to OpenVoiceOS/OVOS-workshop that referenced this pull request May 1, 2024
@JarbasAl JarbasAl requested review from mikejgray and NeonDaniel May 1, 2024 22:02
JarbasAl added a commit to OpenVoiceOS/OVOS-workshop that referenced this pull request May 1, 2024
feat/wait_while_speaking

extract into helper method + add wait flag to play_audio
JarbasAl added a commit to JarbasHiveMind/ZZZ-HiveMind-core that referenced this pull request May 1, 2024
companion to OpenVoiceOS/ovos-bus-client#93

by default allows voice sats to report if they are recording/playing audio, exposing that info to Session

avoids the need of configuring devices individually by default
```
$hivemind-core allow-msg "recognizer_loop:record_begin"
$hivemind-core allow-msg "recognizer_loop:record_end"
$hivemind-core allow-msg "recognizer_loop:audio_output_start"
$hivemind-core allow-msg "recognizer_loop:audio_output_end"
```
JarbasAl added a commit to JarbasHiveMind/ZZZ-HiveMind-core that referenced this pull request May 2, 2024
companion to OpenVoiceOS/ovos-bus-client#93

by default allows voice sats to report if they are recording/playing audio, exposing that info to Session

avoids the need of configuring devices individually by default
```
$hivemind-core allow-msg "recognizer_loop:record_begin"
$hivemind-core allow-msg "recognizer_loop:record_end"
$hivemind-core allow-msg "recognizer_loop:audio_output_start"
$hivemind-core allow-msg "recognizer_loop:audio_output_end"
```
@JarbasAl JarbasAl merged commit e67b630 into dev May 3, 2024
6 checks passed
@JarbasAl JarbasAl deleted the feat/track_speaking+recording_per_session branch May 3, 2024 17:37
JarbasAl added a commit to OpenVoiceOS/OVOS-workshop that referenced this pull request May 7, 2024
* rebase on OpenVoiceOS/ovos-bus-client#93

feat/wait_while_speaking

extract into helper method + add wait flag to play_audio

* Update requirements.txt
@github-actions github-actions bot mentioned this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants