input: Write a python function to use gTTS and pygame to read aloud the content of a given URL.
  assert url_to_speech('https://www.example.com') == None
  assert url_to_speech('https://www.test.com') == None
output: import requests
  from bs4 import BeautifulSoup
  from gtts import gTTS
  import pygame
  
  def url_to_speech(url):
      # Fetch the content from the URL
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      # Extract text from the HTML
      text = soup.get_text()
  
      # Use gTTS to convert text to speech
      tts = gTTS(text=text, lang='en')
      tts.save('output.mp3')
  
      # Initialize pygame
      pygame.mixer.init()
      pygame.mixer.music.load('output.mp3')
      pygame.mixer.music.play()
  
      # Wait for the audio to finish
      while pygame.mixer.music.get_busy():
          pygame.time.Clock().tick(10)