tag:blogger.com,1999:blog-6272733848189485006.post5847295989664775744..comments2024-01-02T02:24:52.500-08:00Comments on Life plus Linux: A geek way to wish Happy Birthday!Suresh Alsehttp://www.blogger.com/profile/17014135247297674384noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-6272733848189485006.post-61554466717407762272015-03-30T08:03:23.747-07:002015-03-30T08:03:23.747-07:00Thanks for pointing out the error :)Thanks for pointing out the error :)Suresh Alsehttps://www.blogger.com/profile/17014135247297674384noreply@blogger.comtag:blogger.com,1999:blog-6272733848189485006.post-9036438700756820942015-03-30T07:14:05.761-07:002015-03-30T07:14:05.761-07:00Works now. Thanks :) I'll not try and understa...Works now. Thanks :) I'll not try and understand the code behind.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6272733848189485006.post-39610221459588421932015-03-30T07:03:45.426-07:002015-03-30T07:03:45.426-07:00It looks like you have an older version of scipy. ...It looks like you have an older version of scipy. Hence It is not able to read the metadata in the wav file. <br />Now I have removed the metadata. Download the latest wav file and try again.<br />Also, undo the changes you have made to the code. Suresh Alsehttps://www.blogger.com/profile/17014135247297674384noreply@blogger.comtag:blogger.com,1999:blog-6272733848189485006.post-61844583462504886642015-03-30T06:34:08.880-07:002015-03-30T06:34:08.880-07:00I'm using your wav file. The first error I get...I'm using your wav file. The first error I get is:<br />/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/io/wavfile.py:121: WavFileWarning: chunk not understood<br /> warnings.warn("chunk not understood", WavFileWarning)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6272733848189485006.post-70225952228637316532015-03-30T06:00:50.672-07:002015-03-30T06:00:50.672-07:00Can you upload the wav file(to google drive or som...Can you upload the wav file(to google drive or something) and share it?Suresh Alsehttps://www.blogger.com/profile/17014135247297674384noreply@blogger.comtag:blogger.com,1999:blog-6272733848189485006.post-80773179234045536322015-03-30T05:10:44.011-07:002015-03-30T05:10:44.011-07:00I'm sorry I am a newbie at python. So after ch...I'm sorry I am a newbie at python. So after changing it to data, instead of data[:,0] on line 14, 19 and 20, it says:<br />_min = min([abs(x) for x in data]) #max amplitude in the wav<br />TypeError: bad operand type for abs(): 'str'Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6272733848189485006.post-5910880793155928412015-03-30T01:24:20.917-07:002015-03-30T01:24:20.917-07:00For your wav file you have to change "data[:,...For your wav file you have to change "data[:,0]" to "data"Suresh Alsehttps://www.blogger.com/profile/17014135247297674384noreply@blogger.comtag:blogger.com,1999:blog-6272733848189485006.post-54754794001806647952015-03-29T13:19:44.148-07:002015-03-29T13:19:44.148-07:00It says TypeError: string indices must be integers...It says TypeError: string indices must be integers, not tuple on line 14Anonymousnoreply@blogger.com