title: Get length of wav file in samples with python
body: <p>i am trying to run a python code that processes wav files. It asks to give length of file in samples. 
  After research i found this command</p>
  
  <pre><code>&gt;&gt;&gt;import os
  
  &gt;&gt;&gt;b=os.path.getsize('/somepath')
  
  &gt;&gt;&gt;b       
  </code></pre>
  
  <p>but i am not sure if it gives result in samples. </p>
  
  <p>Anyone can help?</p>