podcastfy
podcastfy copied to clipboard
audio files not working with local model
Hi, everything's working fine when using Gemini.
The issue is with using a local model
I'm running ./TinyLlama-1.1B-Chat-v1.0.Q5_K_M.llamafile --server --nobrowser (which is working) ffmpeg is properly installed and can be found in the path (+ all needed permissions)
from podcastfy.client import generate_podcast
from IPython.display import Audio, display
def embed_audio(audio_file):
"""
Embeds an audio file in the notebook, making it playable.
Args:
audio_file (str): Path to the audio file.
"""
try:
display(Audio(audio_file))
print(f"Audio player embedded for: {audio_file}")
except Exception as e:
print(f"Error embedding audio: {str(e)}")
audio_file = generate_podcast(
urls=["https://en.wikipedia.org/wiki/Podcast"],
tts_model="edge",
is_local=True
)
however when running, it only (and always independent of text source) produces 260B mp3 which are not playable
Any suggestions would be much appreciated. Thank you!