Repository navigation
Speaker Support #567 - #686
Merged
Merged
Conversation
kevvz
marked this pull request as ready for review
August 29, 2024 02:41
josancamon19
approved these changes
Aug 29, 2024
Collaborator
|
Seems like this breaks advertising (Friend Dev Kit 2 official device) |
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
BasedHardware#567 This is a rebase of the previous PR. How to test: In the firmware_v1.0 file, Flash the zephyr.uf2 file in the file "build_speaker". -Then use the script "discover_devices.py" to find the device id of your Omi device. This is to avoid cases where there are multiple friends connected at once. If there is more than one friend then just test all of them. In the script play_sound_on_friend.py, (in firmware_v1.0) On line 20 add the device id of your friend. This is to avoid cases where there is more than one friend nearby. On line 21 add your Deepgram API key. Then save and run the script by typing a small string. For example, one line could be python3 play_sound_on_friend.py "hello" Which should get the speaker to say hello. Make sure your device is connected by USB or you have connected a 3.3V pin to the speaker. BasedHardware#573 (For now it is disabled but since this uses very similar code). A sound should play automatically when you compile and run the zephyr.uf2 file. Of course this file can be modified to play any haptic sound provided you enter the appropriate lookup table.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#567
This is a rebase of the previous PR.
How to test:
In the firmware_v1.0 file,
Flash the zephyr.uf2 file in the file "build_speaker".
-Then use the script "discover_devices.py" to find the device id of your Omi device. This is to avoid cases where there are multiple friends connected at once. If there is more than one friend then just test all of them.
In the script play_sound_on_friend.py, (in firmware_v1.0)
On line 20 add the device id of your friend. This is to avoid cases where there is more than one friend nearby.
On line 21 add your Deepgram API key.
Then save and run the script by typing a small string. For example, one line could be
python3 play_sound_on_friend.py "hello"
Which should get the speaker to say hello. Make sure your device is connected by USB or you have connected a 3.3V pin to the speaker.
#573 (For now it is disabled but since this uses very similar code).
A sound should play automatically when you compile and run the zephyr.uf2 file. Of course this file can be modified to play any haptic sound provided you enter the appropriate lookup table.