简体   繁体   English

如何打印对象的值?

[英]How to print the value of the object?

How to print the values of the objects?如何打印对象的值?

    import amfm_decompy.pYAAPT as pYAAPT
    import amfm_decompy.basic_tools as basic

    signal = basic.SignalObj('microphone-results-6.wav')
    pitch = pYAAPT.yaapt(signal)
    print(pitch)

It is instead printing the object's address.而是打印对象的地址。 Please help me请帮我

Have you tried? 你有没有尝试过?

pitch.samp_values

then you can plot it like that: 然后你可以这样绘制它:

plt.plot(pitch.samp_values)
plt.show()

print("pitch ",pitch .samp_values)打印(“音高”,音高.samp_values)

Is it possible to pass the live microphone audio instead of saving and sending it .wav是否可以传递实时麦克风音频而不是保存和发送 .wav

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM