Skip to content

Instantly share code, notes, and snippets.

View dbym4820's full-sized avatar

tomabu dbym4820

View GitHub Profile
@dbym4820
dbym4820 / text-to-audio.sh
Created March 23, 2023 07:53
script for converting text file to audio file
#/bin/sh
# テキストファイルに書いた文章を音声ファイル化するスクリプト
# open_jtalk, ffmpeg, soxに依存している
function create_silent_wav(){
# 無声の音声データを生成
fs=48000 # サンプリング周波数
len=2 # 時間長(秒)
### 油谷Mac用シェル初期化用Resource Configureファイル
### 前提
###  Gitサーバ(Gitlab:20180520時点)からデフォルトのEmacs.dディレクトリを獲得していること
############### ユーザ基本バイナリ用
export PATH=$PATH:/usr/local/bin:/opt/local/bin:/opt/local/sbin
############### Roswellスクリプト用
export PATH=$PATH:~/.roswell/bin
#!/bin/bash
###########
# How to use this roulette script
# ~ $ wget https://gist.githubusercontent.com/dbym4820/334fd9e5c893c3f1e4a46cde725a4022/raw/c044b005de1ac490ea4480cec9dfb126eb055afe/roulette.sh
# ~ $ sh /path/to/roulette.sh [&rest roulette-components-list]
###########
MAX_TIME=500