-1

I am trying to work on an Arduino bot whose job will be to just recognise voice commands given only by me. I have a Python code for it. But a line is giving me syntax error. That particular line is a print statement which goes like this print len(data), samplerate

data, samplerate = sf.read(b) #reading audio file using soundfile library

print len(data), samplerate

x= len(data)
jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Sayantan4796
  • 169
  • 1
  • 10

1 Answers1

0

If using Python3, then use:

print(len(data), samplerate)

Instead of:

print len(data), samplerate
Dipen Dadhaniya
  • 4,550
  • 2
  • 16
  • 24