Skip to content

Instantly share code, notes, and snippets.

View Psychokiller1888's full-sized avatar

Psycho Psychokiller1888

View GitHub Profile
@Psychokiller1888
Psychokiller1888 / snipsSuperTTS.sh
Last active June 7, 2023 11:21
One TTS to rule them all
#!/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 #######
#------------------------------------
@Psychokiller1888
Psychokiller1888 / snipsWavenet.sh
Last active September 1, 2019 23:53
Give access to Google Wavenet to your Snips assistant
#!/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
@Psychokiller1888
Psychokiller1888 / offlineFallback.py
Last active January 27, 2019 18:12
A way to fallback to local services for Snips when your internet goes down
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import subprocess
import time
RUNNING = False
ONLINE = True