You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New to Python but have hacked many languages.
Tried code as copied from GitHub and received error:
detecting silences
Traceback (most recent call last):
File "C:\ProgramData\scripts\silence_cutter.py", line 165, in
main()
File "C:\ProgramData\scripts\silence_cutter.py", line 161, in main
cut_silences (infile, outfile, dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 101, in cut_silences
silences = findSilences (infile,dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 27, in findSilences
time_list.append (float(words[i+1]))
ValueError: could not convert string to float: '0\r'
Tried fix by simonflick Aug 3 fix:
lines = re.split(r"(\r)?\n", s)
Gave error:
detecting silences
Traceback (most recent call last):
File "C:\ProgramData\scripts\silence_cutter.py", line 172, in
main()
File "C:\ProgramData\scripts\silence_cutter.py", line 169, in main
cut_silences (infile, outfile, dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 103, in cut_silences
silences = findSilences (infile,dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 22, in findSilences
lines = re.split(r"(\r)?\n", s)
NameError: name 're' is not defined
Changed re. to s. to match variable and received error:
detecting silences
Traceback (most recent call last):
File "C:\ProgramData\scripts\silence_cutter.py", line 174, in
main()
File "C:\ProgramData\scripts\silence_cutter.py", line 171, in main
cut_silences (infile, outfile, dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 105, in cut_silences
silences = findSilences (infile,dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 24, in findSilences
lines = s.split(r"(\r)?\n", s)
TypeError: 'str' object cannot be interpreted as an integer
Suggestions and guidance requested.
The text was updated successfully, but these errors were encountered:
New to Python but have hacked many languages.
Tried code as copied from GitHub and received error:
detecting silences
Traceback (most recent call last):
File "C:\ProgramData\scripts\silence_cutter.py", line 165, in
main()
File "C:\ProgramData\scripts\silence_cutter.py", line 161, in main
cut_silences (infile, outfile, dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 101, in cut_silences
silences = findSilences (infile,dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 27, in findSilences
time_list.append (float(words[i+1]))
ValueError: could not convert string to float: '0\r'
Tried fix by simonflick Aug 3 fix:
lines = re.split(r"(\r)?\n", s)
Gave error:
detecting silences
Traceback (most recent call last):
File "C:\ProgramData\scripts\silence_cutter.py", line 172, in
main()
File "C:\ProgramData\scripts\silence_cutter.py", line 169, in main
cut_silences (infile, outfile, dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 103, in cut_silences
silences = findSilences (infile,dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 22, in findSilences
lines = re.split(r"(\r)?\n", s)
NameError: name 're' is not defined
Changed re. to s. to match variable and received error:
detecting silences
Traceback (most recent call last):
File "C:\ProgramData\scripts\silence_cutter.py", line 174, in
main()
File "C:\ProgramData\scripts\silence_cutter.py", line 171, in main
cut_silences (infile, outfile, dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 105, in cut_silences
silences = findSilences (infile,dB)
File "C:\ProgramData\scripts\silence_cutter.py", line 24, in findSilences
lines = s.split(r"(\r)?\n", s)
TypeError: 'str' object cannot be interpreted as an integer
Suggestions and guidance requested.
The text was updated successfully, but these errors were encountered: