Ejemplo n.º 1
0
 public void listenHeadLines(FastFeed feed) {
   allNews = NewsTableHandler.getInstance().getAllNewsForFeed(feed, 0, 10);
   int i = 0;
   voice.speak("Press one of the following options to listen to news.");
   for (CloudNews news : allNews) {
     voice.speak(i + " for. " + news.getTitle());
     i++;
   }
 }
Ejemplo n.º 2
0
  public void listenNews(CloudNews news) {
    String content = news.getContent();

    content = content.replaceAll("\\<.*?>", "");
    voice.speak(content);
  }