This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# By Psycho | |
# Shell script to handle different TTS and online / offline connectivity | |
# This bash script can be set as a custom TTS for snips but also called directly from your skills | |
# a great way to give more than one personality to your assistant | |
# Original script: https://gist.github.com/Psychokiller1888/cf10af3220b5cd6d9c92c709c6af92c2 | |
####### COMMON ####### | |
#------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Shell script to use Google Wavenet as Snips TTS | |
# Install mpg123: sudo apt-get install mpg123 | |
# Install Google SDK: https://cloud.google.com/text-to-speech/docs/quickstart-protocol. | |
# Follow point 6. to initialize the sdk after creating your service account. There is an apt-get install procedure!! | |
# Set the correct path to your googlecredentials.json file | |
export GOOGLE_APPLICATION_CREDENTIALS="" | |
# Set your cache path | |
cache="" | |
# Edit /etc/snips.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import socket | |
import subprocess | |
import time | |
RUNNING = False | |
ONLINE = True |