Temp fix for MacOS by removing baps welcome gen.

This commit is contained in:
Matthew Stratford 2020-11-04 22:38:31 +00:00
parent ae5cea9c62
commit da5e1a2a5a
No known key found for this signature in database
GPG key ID: 9E53C8B3F0B57395

View file

@ -22,7 +22,10 @@ import logging
from helpers.os_environment import isMacOS from helpers.os_environment import isMacOS
from helpers.device_manager import DeviceManager from helpers.device_manager import DeviceManager
import pyttsx3 if not isMacOS():
# Rip, this doesn't like threading on MacOS.
import pyttsx3
import config import config
from typing import Dict, List from typing import Dict, List
@ -270,20 +273,24 @@ def startServer():
) )
channel_p[channel].start() channel_p[channel].start()
# Welcome Speech if not isMacOS():
text_to_speach = pyttsx3.init() # Temporary RIP.
text_to_speach.save_to_file(
"""Thank-you for installing BAPSicle - the play-out server from the broadcasting and presenting suite. # Welcome Speech
This server is accepting connections on port {0}
The version of the server service is {1} text_to_speach = pyttsx3.init()
Please refer to the documentation included with this application for further assistance.""".format( text_to_speach.save_to_file(
config.PORT, """Thank-you for installing BAPSicle - the play-out server from the broadcasting and presenting suite.
config.VERSION This server is accepting connections on port {0}
), The version of the server service is {1}
"dev/welcome.mp3" Please refer to the documentation included with this application for further assistance.""".format(
) config.PORT,
text_to_speach.runAndWait() config.VERSION
),
"dev/welcome.mp3"
)
text_to_speach.runAndWait()
new_item: Dict[str, any] = { new_item: Dict[str, any] = {
"timeslotitemid": 0, "timeslotitemid": 0,