Fix to Alarm Distortion

Tested with new alarm, it sounded distorted. Looked at implementation of other sounds (news skill), and decided to try with MP3. Changed to using MP3 instead. Everything works properly now, tested on multiple devices.
pull/62/head
Ryan Sipes 2016-05-27 12:48:37 -05:00
parent 7322539d82
commit 93dad37b81
4 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ url_rss = "http://www.npr.org/rss/podcast.php?id=500005"
time_format = 12h # Options are 12h and 24h
[AlarmSkill]
filename = alarm.wav
filename = alarm.mp3
max_delay = 600 # in seconds
repeat_time = 20 # in seconds
extended_delay = 60 # in seconds

View File

@ -24,7 +24,7 @@ from os.path import dirname, join
from adapt.intent import IntentBuilder
from mycroft.skills.scheduled_skills import ScheduledCRUDSkill
from mycroft.util import play_wav
from mycroft.util import play_mp3
__author__ = 'jdorleans'
@ -75,7 +75,7 @@ class AlarmSkill(ScheduledCRUDSkill):
delay = self.__calculate_delay(self.max_delay)
while self.alarm_on and datetime.now() < delay:
play_wav(self.file_path)
play_mp3(self.file_path)
time.sleep(1)
self.speak_dialog('alarm.stop')
time.sleep(self.repeat_time + 2)

Binary file not shown.

Binary file not shown.