Skip to content

Commit

Permalink
Use cvlc to play
Browse files Browse the repository at this point in the history
  • Loading branch information
dbieber committed Apr 21, 2024
1 parent 2242bdb commit c105605
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions gonotego/command_center/system_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def say(text):
try:
say_with_openai(text)
except:
print("Falling back on say_traditional")
say_traditional(text)


Expand Down Expand Up @@ -88,13 +89,7 @@ def say_with_openai(text):


def play_mp3(path):
import pygame
import time

pygame.init()
pygame.mixer.init()
pygame.mixer.music.load(path)
pygame.mixer.music.play()
shell(f"cvlc {path} --play-and-exit")


@register_command('silence')
Expand Down

0 comments on commit c105605

Please sign in to comment.