Skip to content

Instantly share code, notes, and snippets.

@tam17aki
tam17aki / real_time_vc.py
Last active March 9, 2026 05:34
PyWorldでリアルタイム分析合成(+ 声質変換)
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Copyright (c) 2020 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
@tam17aki
tam17aki / SRUCell.py
Last active January 6, 2026 04:18
A TensorFlow implementation of Simple Recurrent Unit (SRU).
# -*- coding: utf-8 -*-
# Copyright (C) 2017 by Akira TAMAMORI
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# -*- coding: utf-8 -*-
"""Plots vocal tract area functions for Japanese vowels.
This script processes vocal tract diameter data from Arai (2007) to
generate and display interpolated area function graphs for the five
standard Japanese vowels.
Copyright (C) 2025 by Akira TAMAMORI
Permission is hereby granted, free of charge, to any person obtaining a copy
@tam17aki
tam17aki / music_demo.py
Created August 25, 2025 03:21
A demonstration of parameter estimation for sinusoidal signals using the MUSIC algorithm.
# -*- coding: utf-8 -*-
"""A demonstration of parameter estimation for sinusoidal signals.
Frequencies and damping coefficients are estimated using the MUSIC algorithm,
followed by amplitude and phase estimation via the least squares method.
Copyright (C) 2025 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
@tam17aki
tam17aki / music_param_demo.py
Last active August 21, 2025 08:39
A demonstration of parameter estimation for sinusoidal signals via the MUSIC algorithm and the least squares method.
# -*- coding: utf-8 -*-
"""A demonstration of parameter estimation for sinusoidal signals.
Frequencies are estimated using the MUSIC algorithm, followed by
amplitude and phase estimation via the least squares method.
Copyright (C) 2025 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
# -*- coding: utf-8 -*-
"""A demonstration of Parameter estimation based on ESPRIT using total least squares.
Copyright (C) 2025 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
@tam17aki
tam17aki / esprit_tls_demo.py
Last active August 19, 2025 16:03
A demonstration of frequency estimation using the ESPRIT algorithm with total least squares.
# -*- coding: utf-8 -*-
"""A demonstration of Parameter estimation based on ESPRIT using total least squares.
Copyright (C) 2025 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
# -*- coding: utf-8 -*-
"""A demonstration of frequency estimation using the ESPRIT algorithm.
Copyright (C) 2025 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
@tam17aki
tam17aki / esprit_demo.py
Last active August 19, 2025 16:02
A demonstration of frequency estimation using the ESPRIT algorithm
# -*- coding: utf-8 -*-
"""A demonstration of frequency estimation using the ESPRIT algorithm.
Copyright (C) 2025 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
# -*- coding: utf-8 -*-
"""A demonstration of frequency estimation using the MUSIC algorithm.
Copyright (C) 2025 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