Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# -*- coding: utf-8 -*- | |
"""Clustering with Kernel K-means.""" | |
# Author: Mathieu Blondel <mathieu@mblondel.org> | |
# Author: Akira Tamamori | |
# License: BSD 3 clause | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from sklearn.base import BaseEstimator, ClusterMixin |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# -*- coding: utf-8 -*- | |
# Configuration for Benzaiten Starter Kit ver. 1.0 | |
# Copyright (C) 2022 by Akira TAMAMORI | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
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
"""PySimpleGUIにより音声を録音し、音声の分析合成を実施する. | |
波形とスペクトログラムもプロット可能. | |
""" | |
import queue | |
import sys | |
import threading | |
import time | |
import librosa # 音声分析のライブラリ | |
import matplotlib.pyplot as plt # グラフ描画のライブラリ |
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
"""PySimpleGUIにより音声を録音し、音声の分析合成を実施する. | |
波形とスペクトログラムもプロット可能. | |
""" | |
import librosa # 音声分析のライブラリ | |
import matplotlib.pyplot as plt # グラフ描画のライブラリ | |
import numpy as np | |
import PySimpleGUI as sg # GUI構築のライブラリ | |
import pysptk # 音声分析合成のライブラリ | |
import sounddevice as sd # 録音・再生系のライブラリ | |
import soundfile as sf # 読み込み・書き出しのライブラリ |
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
# -*- coding: utf-8 -*- | |
"""Training script for Sinusoidal Frequency Estimation by Gradient Descent. | |
Copyright (C) 2022 by Akira TAMAMORI | |
Copyright (C) 2022 by @xiao_ming | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
SFE: | |
root_dir: "/work/tamamori/oscillator/" | |
data_dir: "data/" | |
feature: | |
sample_rate: 16000 # サンプリング周波数 | |
frame_length: 1024 # 分析窓長 | |
hop_length: 512 # ホップ長 | |
model: |