title: my python async script does not process requests quickly?
body: <p>I have developed a Python script that allows (in theory) to convert WAV files to MP3 files. I'm trying to make it ASYNC (asyncio) to convert multiple files simultaneously and reduce the processing time.</p>
  <p>but that I converted 1 or 10 the time spent and the same. I'm not very good at using async yet</p>
  <pre><code>
  class SoundsProcessing:
  
    
  
      async def cconvert(self, sem, audioFileIndex, audioFile, aOutputFormat = 'mp3'):
          try:
              async with sem:
  
                  inputfile = tempfile.NamedTemporaryFile()
                  inputfile.write(audioFile)
                  outputfile = tempfile.NamedTemporaryFile()
  
  
                  AudioSegment.from_wav(inputfile.name).export(outputfile.name+'.'+aOutputFormat, format=aOutputFormat)
  
                  inputfile.close()
  
                  audio = await readAsyncFile(outputfile.name+'.'+aOutputFormat)
  
                  self.audioFiles[audioFileIndex] = audio
  
                  outputfile.close()
  
                  logger.add('INFO', &quot;Audio Files conversion: &quot; + outputfile.name + &quot; indexed &quot; + str(audioFileIndex) + &quot; is Done&quot;)
  
                  return audio
  
          except Exception as e:
              logger.add('WARNING', &quot;Audio Files conversion: &quot; + str(e))
              return False
  
      async def audioConversion(self, aOutputAudioFormat = 'mp3'):
  
          tasks = []
          sem = asyncio.Semaphore(10)
          start_at = time.time()
  
          logger.add('INFO', &quot;Audio Files conversion: Start session for &quot; + str(len(self.audioFiles)) + &quot; files/treatment&quot;)
  
          audioFileIndex = 0
          for audioFile in self.audioFiles:
              task = asyncio.ensure_future(self.cconvert(sem, audioFileIndex, audioFile, aOutputAudioFormat))
              tasks.append(task)
              audioFileIndex = audioFileIndex + 1
  
          responses = asyncio.gather(*tasks)
          await responses
  
          time_lapse = round(time.time() - start_at, 2)
          query_by_seconds = round(len(self.audioFiles) / time_lapse, 2)
          logger.add('INFO', &quot;Audio Files conversion: End session on &quot; + str(time_lapse) + &quot; seconds (&quot;+str(query_by_seconds)+&quot;q/s)&quot;)
  
  
      def convert(self, aOutputAudioFormat = 'mp3'):
          self.results = {}
  
          loop = asyncio.new_event_loop()
          asyncio.set_event_loop(loop)
          future = asyncio.ensure_future(self.audioConversion(aOutputAudioFormat))
          loop.run_until_complete(future)
  
  </code></pre>