Zack Saadioui
4/25/2025
1
venv
1
virtualenv
1
poetry
1
rich
1
openai-whisper
1
suno-bark
1
pip
1
2
bash
pip install rich openai-whisper suno-bark
1
2
3
python
import whisper
model = whisper.load_model('base.en')
1
2
3
4
python
from langchain.chains import ConversationChain
from langchain.memory import ConversationBufferMemory
from langchain.prompts import PromptTemplate
1
2
3
python
from suno.bark import BarkModel
model = BarkModel.from_pretrained('suno/bark-small')
1
2
3
4
5
6
7
8
9
python
# Example of the main application loop:
while True:
print('Press Enter to start recording.')
input() # Start recording
audio_data = record_audio() # Capture audio input
text_input = transcribe(audio_data) # Transcribe the audio input
response_text = get_llm_response(text_input) # Get a response from Ollama
play_audio(text_to_speech(response_text)) # Play the generated speech audio
Copyright © Arsturn 2025