-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Norman Bukingolts <norman@hume.ai>
- Loading branch information
1 parent
2958001
commit 497667c
Showing
6 changed files
with
271 additions
and
68 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
evi-python-example/.env | ||
evi-python-example/__pycache__ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
HUME_API_KEY="PASTE_HUME_API_KEY_HERE" | ||
HUME_SECRET_KEY="PASTE_HUME_SECRET_KEY_HERE" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import sounddevice as sd | ||
|
||
# UI Helper Functions | ||
def print_ascii_art(msg: str): | ||
# Print ASCII art of 'EVI' and app purpose statement | ||
print("=" * 60) | ||
print( | ||
rf""" | ||
███████ ██ ██ ██ | ||
██ ██ ██ ██ | ||
█████ ██ ██ ██ | ||
██ ██ ██ ██ | ||
███████ ████ ██ | ||
{msg} | ||
""" | ||
) | ||
print("=" * 60) | ||
|
||
|
||
def list_capture_devices(): | ||
# Log available capture audio devices (devices with input channels) and their indices | ||
print("-" * 60) | ||
print("Available CAPTURE (input) devices:") | ||
devices = sd.query_devices() | ||
for idx, device in enumerate(devices): | ||
if device['max_input_channels'] > 0: | ||
print(f"{idx}: {device['name']}") | ||
print("-" * 60) | ||
|
||
def list_audio_devices(): | ||
# Log available input and output audio devices | ||
print("-" * 60) | ||
print("ALL available audio devices:") | ||
print(sd.query_devices()) | ||
print("-" * 60) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.