Commit Graph

30 Commits

Author SHA1 Message Date
Matthew Gennings cb86fbd47d chore: added note to .gitignore 2024-07-22 16:43:07 -05:00
Matthew Gennings b3e600377c feat: Update narrator.py and capture.py to reflect ElevenLabs API updates
This commit addresses changes made to update the ElevenLabs API version as per pull request #51 (Update narrator.py to reflect API updates #51 - https://github.com/cbh123/narrator/pull/51). The following changes have been made:

narrator.py:
- Updated the ElevenLabs client instantiation to the new API format.
- Removed the deprecated `set_api_key` and `get_api_key` methods and replaced them with the `ElevenLabs` class instantiation.
- Modified the `play_audio` function to handle the audio generator properly by collecting the audio data into a bytes-like object before writing it to a file and playing it.
- Added detailed docstrings and comments for better understanding and maintenance of the code.
- Ensured that the OpenAI client uses the correct API key and updated the image analysis to handle responses accurately.

capture.py:
- Ensured the frames folder is created if it doesn't exist.
- Updated the webcam initialization check and added a wait time for the camera to adjust light levels.
- Adjusted the image resizing logic to improve performance before saving the frame.
- Added detailed print statements and comments for clarity and debugging purposes.

These changes ensure compatibility with the latest ElevenLabs API and improve the overall robustness and readability of the code.
2024-07-22 16:43:07 -05:00
Gennings, Matt b80925fb4d Updated README with .env file instructions 2024-01-09 11:34:08 -06:00
Gennings, Matt b083594e2e Updated narrator.py and requirements.txt to support .env file for environment variables 2024-01-09 11:33:48 -06:00
Charlie Holtz 1174275b5b
Merge pull request #26 from gaborcselle/parametrize-voice-id 2023-11-18 11:10:18 -05:00
Gabor Cselle f6ccf6f780 Actually set Elevenlabs API key from environment variable 2023-11-17 12:30:59 -08:00
Gabor Cselle b2b76702b3 Parametrize voice ID via another environment variable. 2023-11-17 10:50:12 -08:00
Charlie Holtz c985bf5a47
Merge pull request #7 from mattm/create-frames-dir
Create frames dir
2023-11-15 21:49:46 -05:00
Charlie Holtz ae1ef2fe61
Merge pull request #11 from Rhjulskov/main
Add empty frames folder to git
2023-11-15 21:49:19 -05:00
Charlie Holtz 5b3dc11102
Merge pull request #2 from andre15silva/patch-1
add missing dependencies to `requirements.txt`
2023-11-15 21:47:14 -05:00
Charlie Holtz dc3d70d834
Update README.md 2023-11-15 21:46:37 -05:00
Charlie Holtz 7bcbcca0e8
Update README.md 2023-11-15 21:45:42 -05:00
Charlie Holtz f82b760931
Update README.md 2023-11-15 21:23:50 -05:00
Rasmus Hjulskov 78ae5813e3
Merge branch 'cbh123:main' into main 2023-11-15 23:45:42 +01:00
Charlie Holtz f1e2b53240
Update README.md 2023-11-15 17:45:18 -05:00
Charlie Holtz 05344064f4
Update README.md 2023-11-15 17:45:03 -05:00
Rasmus Hjulskov 4bd6c87d5f commit empty frames folder to save pictures 2023-11-15 22:44:40 +00:00
Charlie Holtz 4bab10462a
Update README.md 2023-11-15 14:42:50 -05:00
Matt Mazur f3c4337fc2 Create frames directory if it doesn't exist 2023-11-15 13:54:16 -05:00
Matt Mazur c75f298353 Revert "Create frames folder if it doesn't exist"
This reverts commit 61e458e95b.
2023-11-15 13:53:39 -05:00
Matt Mazur 61e458e95b Create frames folder if it doesn't exist 2023-11-15 13:46:10 -05:00
André Silva cb18607867
add missing dependencies to `requirements.txt` 2023-11-15 18:51:03 +01:00
Charlie Holtz feeb0cfbd2
Update README.md 2023-11-15 10:49:20 -05:00
Charlie Holtz daf38c96ba
Update README.md 2023-11-15 10:45:59 -05:00
Charlie Holtz f2359959dd update gitignore, change judge to narrator 2023-11-15 10:43:29 -05:00
Charlie Holtz b38ee783fe first commit 2023-11-14 15:10:19 -05:00
Charlie Holtz fd52ba8bcc cleanup 2023-11-07 12:41:34 -05:00
Charlie Holtz 1dd40a7499 updates to quality 2023-11-07 10:50:50 -05:00
Charlie Holtz 899bb437d8 update judge 2023-11-07 10:36:57 -05:00
Charlie Holtz 091f066859 first commit 2023-11-07 10:27:35 -05:00