title: TypeError: expected str, bytes or os.PathLike object, not int in - subprocess
body: <p>I am working with an audio codec and trying to compress the audio file. For that, the Linux command is</p>
  <pre class="lang-none prettyprint-override"><code>opusenc --bitrate 16 input_file.wav output_file.opus
  </code></pre>
  <p>Now to run this command I am using subprocess, my code is</p>
  <pre><code>import subprocess
  wav_file_path = '/home/mds-student/Documents/aDITYA/IEMOCAP/Ses01F_impro01.wav'
  file_name = wav_file_path.split('.')[0]
  file_name = os.path.basename(file_name)
  bitrate = 16
  cmd = ['opusenc', '--bitrate',bitrate ,wav_file_path, file_name, '.opus']
  print(cmd)
  subprocess.call(cmd)
  </code></pre>
  <p>This throws an error</p>
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
    File &quot;src/9_opus_conversion_files.py&quot;, line 78, in &lt;module&gt;
      subprocess.call(cmd)
    File &quot;/home/mds-student/anaconda3/envs/venv/lib/python3.6/subprocess.py&quot;, line 729, in __init__
      restore_signals, start_new_session)
    File &quot;/home/mds-student/anaconda3/envs/venv/lib/python3.6/subprocess.py&quot;, line 1295, in _execute_child
      restore_signals, start_new_session, preexec_fn)
  TypeError: expected str, bytes or os.PathLike object, not int
  </code></pre>
  <p>What am I doing wrong?</p>