python メルケプストラムの时系列を描画

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python メルケプストラムの时系列を描画相关的知识,希望对你有一定的参考价值。

import os
import numpy as np
import matplotlib.pyplot as plt

def draw_mcep(mcep_file1, mcep_file2, order):
    mcep1 = np.loadtxt(mcep_file1)
    mcep2 = np.loadtxt(mcep_file2)
    plt.plot(mcep1[:, order], label=mcep_file1)
    plt.plot(mcep2[:, order], label=mcep_file2)
    plt.xlabel("frame")
    plt.title("%dth-order mcep" % order)
    plt.legend(loc=4)

mcep_file1 = "mcep/clb/arctic_a0005.mcep"
mcep_file2 = "mcep/slt/arctic_a0005.mcep"
draw_mcep(mcep_file1, mcep_file2, 0)

以上是关于python メルケプストラムの时系列を描画的主要内容,如果未能解决你的问题,请参考以下文章