Skip to content

Instantly share code, notes, and snippets.

View r9y9's full-sized avatar
:shipit:
( ˘ω˘ ) zzz

Ryuichi Yamamoto r9y9

:shipit:
( ˘ω˘ ) zzz
View GitHub Profile
#!/usr/bin/python
# coding: utf-8
import numpy as np
from numpy import linalg
from sklearn.mixture import GMM
import scipy.linalg
import scipy.sparse
import scipy.sparse.linalg
@r9y9
r9y9 / mlsa_filter.h
Last active February 15, 2023 11:07
MLSA digital filter for speech synthesis in C++
#pragma once
#include <cmath>
#include <memory>
#include <vector>
#include <cassert>
namespace sp {
/**
#!/usr/bin/env bash
JVSDIR=~/data/jvs_ver1
OUTDIR=~/data/jvs_r9y9_ver1
mkdir -p $OUTDIR
# link all wave file
for speaker in jvs{001..100}; do
JVSDIR=~/data/ita
OUTDIR=~/data/ita_r9y9
mkdir -p $OUTDIR
# link all wave file
for speaker in itako zundamon methane; do
echo $speaker
for corpus in recitation; do
mkdir -p $OUTDIR/$speaker/$corpus
#!/bin/bash
set -e
# 1. ita ディレクトリ (例. $HOME/data/ita) を作成し、このスクリプトと
# https://zunko.jp/multimodal_dev/login.php からダウンロードできる
# 音声データ(3話者分)を配置する
# 2. このスクリプトを実行する
for spk in itako methane zundamon; do
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@r9y9
r9y9 / download_cmu_arctic.sh
Last active January 5, 2021 11:07
CMU ARCTIC download script
#!/bin/bash
# This is a yet another download script for the cmu arctic speech corpus.
# The corpus will be downloaded in $HOME/data/cmu_arctic/
location=$HOME/data/cmu_arctic/
if [ ! -e $location ]
then
echo "Create " $location
@r9y9
r9y9 / model.py
Created November 15, 2020 05:22
TADE
# coding: utf-8
import torch
from torch import nn
from torch.nn import functional as F
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
from torch.nn.utils import weight_norm
from nnsvs.base import BaseModel, PredictionType
@r9y9
r9y9 / Musical context features-v2.ipynb
Last active November 2, 2020 08:40
Musical context features-v2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@r9y9
r9y9 / doxygen_template.conf
Last active July 30, 2020 14:47
My Doxygen template
# Doxyfile 1.8.5
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comment and will be ignored.
# The format is: