Skip to content

Instantly share code, notes, and snippets.

@vessenes
vessenes / google.py
Created January 18, 2019 01:14
Replace tts google.py for home assistant with code that uses wavenet
"""
Support for the google speech service.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/tts.google/
Note - this is a hack. It makes no attempt to update tests. It does not have all wavenet voices listed.
It attempts to respect language requests from hass but this has not been tested.
Google cloud gives the first 1 million characters of wavenet generation for free per month, if you exceed
RECOVERY='chromeos_10452.96.0_asuka_recovery_stable-channel_mp'
echo 'cd ~/Downloads/' >> ~/.bashrc
mkdir /home/chronos/image /home/chronos/local /home/chronos/user/Downloads/boot
cd /home/chronos/user/Downloads/boot
wget https://dl.google.com/dl/edgedl/chromeos/recovery/$RECOVERY.bin.zip
unzip $RECOVERY.bin.zip
sudo losetup -fP $RECOVERY.bin
sudo mkfs.ext4 /dev/sda5
sudo mount /dev/sda5 /home/chronos/local
sudo mount /dev/loop1p3 /home/chronos/image -o loop,ro
@owent
owent / test_backtrace.cpp
Last active June 4, 2022 02:14
test_backtrace
/**
* traceback for cpp
*
* Created on: 2018-01-27
* Author: owent
*
* Released under the MIT license
*
* @note Required flag -rdynamic or addr2line to get the function name when using gcc/clang in unix like system
* @note Using addr2line -Cfpe <exe_path> [func_addr...] for more detail when using gcc/clang
@cyberang3l
cyberang3l / How to setup VirtualGL and TurboVNC on Ubuntu.md
Last active October 16, 2024 09:30
Setup VirtualGL and TurboVNC on Ubuntu for OpenGL forwarding
@teocci
teocci / compile_ffmpeg.md
Last active December 18, 2022 00:15
Compile FFmpeg on Ubuntu 16.04

Compile FFmpeg on Ubuntu

This basic guide supports Ubuntu Xenial Xerus 16.04 and will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide][1].

Note: Copy and paste the whole code box for each step.

Preparation

@diegoferigo
diegoferigo / .bashr_loc2.sh
Last active November 30, 2018 10:42
How-To YARP + iCub: random notes
# Disable echo ^C when Ctrl+C is pressed
stty -echoctl
# Export variables
export EDITOR="nano" # Set the default editor
shopt -s autocd # Avoid using cd to change directory. Simply: ~# /etc
shopt -s cdspell # Basilar typos autocorrect
shopt -s dirspell # Dir names spelling correction
shopt -s cmdhist # Inline multiline commands
sudo dpkg --add-architecture i386
sudo add-apt-repository -y ppa:wine/wine-builds
sudo add-apt-repository -y ppa:ethanak/milena
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y --install-recommends winehq-devel
sudo apt-get install -y sapi4linux python-pyspda python-sapilektor libsapilektor-utils
#download das vozes
#wget http://150.165.205.9/players/ivona/ivona-full.tar.gz
@roblogic
roblogic / msys2-setup.md
Last active May 11, 2024 11:00
MSYS2 first time setup
@morgangiraud
morgangiraud / nvidia-reinstall.sh
Last active December 11, 2020 15:48
Script to reinstall manually nvidia drivers,cuda 9.0 and cudnn 7.1 on Ubuntu 16.04
# Remove anything linked to nvidia
sudo apt-get remove --purge nvidia*
sudo apt-get autoremove
# Search for your driver
apt search nvidia
# Select one driver (the last one is a decent choice)
sudo apt install nvidia-370
@icaromag
icaromag / install-ivona-sapi-tts.sh
Last active August 29, 2023 20:16
Install the Ivona / SAPI Text To Speech solution
# set the arch [IM]
sudo dpkg --add-architecture i386
# add the repos [IM]
sudo add-apt-repository -y ppa:wine/wine-builds
sudo add-apt-repository -y ppa:ethanak/milena
# update the deps [IM]
sudo apt-get update
sudo apt-get -y upgrade