In [2]:
import feedparser
from bs4 import BeautifulSoup

In [4]:
#llog = feedparser.parse('http://feeds.reuters.com/reuters/MostRead')
llog = feedparser.parse('http://feeds.reuters.com/reuters/topNews')

In [5]:
summaries = []
for i in range(len(llog.entries)):
    content = llog.entries[i].summary
    raw = BeautifulSoup(content, 'lxml').get_text(strip = True)#remove edge white spaces
    summaries.append(raw)

In [6]:
summaries


Out[6]:
['WASHINGTON (Reuters) - U.S. President Donald Trump has shown little patience for dissent, but that trait is likely to be tested by his new national security adviser, Army Lieutenant General H.R. McMaster.',
 'WASHINGTON (Reuters) - Some U.S. Department of Homeland Security employees in the Washington area and Philadelphia were unable to access some agency computer networks on Tuesday, according to three sources familiar with the matter.',
 'NEW YORK (Reuters) - Provocative far-right commentator Milo Yiannopoulos resigned on Tuesday as a senior editor of the Breitbart News website after he was vilified and lost a book deal over comments that condoned certain intimate relations between men and young teenage boys.',
 'WASHINGTON (Reuters) - China, in an early test of U.S. President Donald Trump, is nearly finished building almost two dozen structures on artificial islands in the South China Sea that appear designed to house long-range surface-to-air missiles, two U.S. officials told Reuters.',
 'WASHINGTON (Reuters) - U.S. President Donald Trump delivered his first public condemnation of anti-Semitic incidents in the United States on Tuesday after a new spate of bomb threats to Jewish community centers around the country and vandalism in a Jewish cemetery.',
 'TOKYO (Reuters) - Asian stocks edged up on Wednesday, joining a record-setting night for world markets as investors cheered upbeat factory activity in Europe and solid earnings on Wall Street.',
 '(Reuters) - Conservative U.S. Supreme Court justices on Tuesday expressed skepticism about reviving a lawsuit filed by the family of a Mexican teenager against a U.S. Border Patrol agent who fatally shot the 15-year-old from across the border in Texas in 2010.',
 'NEW YORK (Reuters) - Facebook Inc  is in talks with Major League Baseball to live stream one game per week during the upcoming season, which could be a key win as the social media platform works to offer more live sports, according to two people familiar with the situation.',
 'WASHINGTON (Reuters) - The new head of the U.S. Environmental Protection Agency said on Tuesday that America need not choose between jobs and the environment, in a nod to the energy industry, as the White House prepares executive orders that could come as soon as this week to roll back Obama-era regulation.',
 "AUSTIN, Texas (Reuters) - A U.S. judge in Austin issued a preliminary injunction on Tuesday halting Texas' plan to cut Medicaid funding for Planned Parenthood, saying the state did not present evidence of a program violation that would warrant termination."]

In [7]:
myspeech = ''
for i in summaries:
    myspeech+=i
myspeech


Out[7]:
"WASHINGTON (Reuters) - U.S. President Donald Trump has shown little patience for dissent, but that trait is likely to be tested by his new national security adviser, Army Lieutenant General H.R. McMaster.WASHINGTON (Reuters) - Some U.S. Department of Homeland Security employees in the Washington area and Philadelphia were unable to access some agency computer networks on Tuesday, according to three sources familiar with the matter.NEW YORK (Reuters) - Provocative far-right commentator Milo Yiannopoulos resigned on Tuesday as a senior editor of the Breitbart News website after he was vilified and lost a book deal over comments that condoned certain intimate relations between men and young teenage boys.WASHINGTON (Reuters) - China, in an early test of U.S. President Donald Trump, is nearly finished building almost two dozen structures on artificial islands in the South China Sea that appear designed to house long-range surface-to-air missiles, two U.S. officials told Reuters.WASHINGTON (Reuters) - U.S. President Donald Trump delivered his first public condemnation of anti-Semitic incidents in the United States on Tuesday after a new spate of bomb threats to Jewish community centers around the country and vandalism in a Jewish cemetery.TOKYO (Reuters) - Asian stocks edged up on Wednesday, joining a record-setting night for world markets as investors cheered upbeat factory activity in Europe and solid earnings on Wall Street.(Reuters) - Conservative U.S. Supreme Court justices on Tuesday expressed skepticism about reviving a lawsuit filed by the family of a Mexican teenager against a U.S. Border Patrol agent who fatally shot the 15-year-old from across the border in Texas in 2010.NEW YORK (Reuters) - Facebook Inc  is in talks with Major League Baseball to live stream one game per week during the upcoming season, which could be a key win as the social media platform works to offer more live sports, according to two people familiar with the situation.WASHINGTON (Reuters) - The new head of the U.S. Environmental Protection Agency said on Tuesday that America need not choose between jobs and the environment, in a nod to the energy industry, as the White House prepares executive orders that could come as soon as this week to roll back Obama-era regulation.AUSTIN, Texas (Reuters) - A U.S. judge in Austin issued a preliminary injunction on Tuesday halting Texas' plan to cut Medicaid funding for Planned Parenthood, saying the state did not present evidence of a program violation that would warrant termination."

In [17]:
from gtts import gTTS
import os
tts = gTTS(text=myspeech, lang='en-uk')
tts.save("good.mp3")
os.system("vlc good.mp3")


Out[17]:
0

In [ ]:
tts =

In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]: