Skip to content

Instantly share code, notes, and snippets.

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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
SFE:
root_dir: "/work/tamamori/oscillator/"
data_dir: "data/"
feature:
sample_rate: 16000 # サンプリング周波数
frame_length: 1024 # 分析窓長
hop_length: 80 # ホップ長
model:
@tam17aki
tam17aki / traing_sfe.py
Created November 16, 2022 13:02
An implementation of training script of "Sinusoidal Frequency Estimation by Gradient Descent" method
# -*- 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
# -*- coding: utf-8 -*-
"""マイク音声入力によるストリーミング音声認識(発話区間検出付き)via VOSK.
Copyright (C) 2022 by Akira TAMAMORI
Copyright (C) 2022 by Koji INOUE
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
# -*- coding: utf-8 -*-
"""マイク音声入力によるストリーミング音声認識 via VOSK.
Copyright (C) 2022 by Akira TAMAMORI
Copyright (C) 2022 by Koji INOUE
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
# -*- coding: utf-8 -*-
"""Training script 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
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.