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
# pip install openai pyaudio python-dotenv | |
import queue | |
import threading | |
from functools import reduce | |
from typing import Callable, Generator | |
import openai | |
import pyaudio | |
from dotenv import load_dotenv |
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
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done |