« RESTとAJAXとIPv6 | Main | TEST OF GOFISH TAG »

Feed2PodcastっぽいことをWSHでやってみる(RSS speaker)

はてなブックマークを眺めてたら「Feedをいろいろ活用」というエントリが目に入った。RSSのちょっと変った使い方をしているサービスを紹介しているのだが、その中で面白いと思ったのが「Feed2Podcast」。RSS Feedを食わせると音声ファイル化してPodcast用に直してくれるのだ。試しにこっそり英語で書いているブログのFeedを食わせてみたら、これが予想以上にきちんとしゃべるので驚いた(※英語のみ対応)。

早速知り合いに紹介したのだが、「ブログの音声読み上げなんてTalkrでもSeesaaでもやってるよー」とつれない返事。個人的には、①RSSデータのRemix法として音声を使っている、②再配信の方法としてPodcastを使っている、という2点が非常にCoolだと思ったのだが、確かに音声読み上げ自体にはそんなに目新しさがあるわけではない。TextToSpeechはWindows XPには標準でついてるし、利用するのは難しくなかったはず…と思って作ってみた。

RSSspeaker

上記のリンクをクリックすると「ファイルを開いていいか?」とか「実行しますか?」とか聞かれるので「はい」をクリックして実行すると、RSSを入力するインプットボックスが表示される。適当なRSS FeedのURLを入力すると「This is a summary of XXX...」とか何とか言ってしゃべり出します(Norton Internet Securityとか入ってる場合、インターネットにアクセスしてよいか?とか聞かれる)。ちなみに、デフォルトで入ってるのはCNN.com: Top StoriesのRSS。その他、有名なニュースサイトのRSSを貼っとくので試してみてほしい。なお、RSS0.91/1.0/2.0、ATOM Feedのいずれにも対応しているが、英語しかしゃべれないので注意。

iPodで英語のお勉強(WSHで早聞き&遅聞き)」というエントリで使ったのと同じ、Windows Scripting Hostを使っている(つまり、マクロですね)。ソースを読んでもらえば分かるが、XMLHTTPオブジェクトを生成してRSS Feedを取ってきて、RegExpオブジェクトでHTMLタグを取り除いて、最後にWindows XP標準搭載のTextToSpeechのSAPIに渡しているだけ。Windowsに標準搭載されているCOMオブジェクトを利用するだけでこんな事が簡単にできるのだ。マイクロソフトばんざい。

AJAXもそうなのだが、クライアントPC側に作業を任せることで、サーバーだけでやるにはしんどいことが結構簡単にできる。RSSspeakerはPodcastではないからmp3ファイルは生成されないが、XMLHTTPオブジェクトではなくDOMオブジェクトのloadXMLメソッドでローカルにキャッシュされたRSSを読むようにすれば、オフラインで音声を聞くことくらいはできる。となると、Feed2PodcastにできてRSSspeakerにできないのはiPodに転送することくらいだ(まあ、これがMusic Experienceには重要なんだけど)。

副産物として、下記のようなものも作ってみた。

  • 選択部分をしゃべらせるBookmarklet (WindowsXP+IE専用)
    JScriptからTextToSpeechのSAPIを呼び出している。ActiveXObjectを使ってるからIE以外では当然使えない。
    ALCの会話例文で音声ファイルがついてないものを読むとき、Web上で発音の分からない単語などをチェックするのによいのではないかと思う。
  • 選択部分を読み上げてくれるマクロ付Word文書
    VBAからTextToSpeechのSAPIを呼び出しているだけ。Word文中の適当な部分を選択して、「Alt+F2」を押して読み上げ開始。単語集とか例文集に使えそうだが、そもそもWordにはExcel同様読み上げ機能が標準でついてるんじゃなかろうか。

最後に、TextToSpeechと言えばゴノレゴなので、なつかしの吉野家コピペを英単語の羅列で空耳風に作ってみた(前段でちょっと解説が入ってます)。RSSspekerにしゃべらせるには下記のRSSをインプットボックスに入れてやればOK。Feed2Podcastにしゃべらせたのも貼っておく。ちなみに吉野家コピペの全文はこちら

 

|

« RESTとAJAXとIPv6 | Main | TEST OF GOFISH TAG »

「WEBサービス」カテゴリの記事

「インターネット」カテゴリの記事

Comments

Hello there! Do you know if they make any plugins to assist with SEO? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains. If you know of any please share. Many thanks!

Posted by: arcadedash.com | 2014.07.04 at 11:12 PM

Hmm is anyone else having problems with the images on this blog loading? I'm trying to determine if its a problem on my end or if it's the blog. Any feedback would be greatly appreciated.

Posted by: Alisia | 2014.11.01 at 01:50 AM

It is a cost effective strategy that directly targets the users required in terms of what their online needs are. Start working at it today and you'll be a master in no time. When you get a pet, you accept to accommodate it with adequate active so that it could reside a continued and blessed life.

Posted by: Faire Pousser La Barbe | 2015.02.28 at 08:15 AM

NFL fans have heard time and time again that Roger Goodell is concerned about the safety of NFL players.

Posted by: MLB Perfect Inning 15 hack stars | 2015.04.26 at 03:11 AM

My relatives all the time say that I am kilping my tiome here at net, except I know I am getting know-how everyday by reading such pleasant posts.

Posted by: stacked washer and dryer | 2015.05.26 at 06:31 PM

What's Happening i am new to this, I stumbled upon this I've discovered It absolutely useful and it has aided me out loads. I'm hiping to contribute & aid different users like its helped me. Great job.

Posted by: stacked washer and dryer | 2015.05.31 at 02:36 PM

Generally I don't learn article on blogs, however I wush to say that this write-up very pressured mee too take a look at annd do so! Your writing style has been surprised me. Thank you, quite gteat article.

Posted by: stackable washer and dryer | 2015.06.07 at 06:47 PM

Our Agar.io hack was among the very first and definitely the best one at the moment. The agar.io robot characteristics you, with your favorite name, but it plays for you personally. The robot never loses. It quantifies the space between every item and causes it to be impossible for your own opponents to catch you. It never lets bigger items in your area. Because the agario hack is always aware of the bulk of each and every player on the guide, this is. It knows who it can't defeat and who may. The hack is an incredibly complex software made of numerous sophisticated calculations for monitoring, path finding and shortest path calculations. In case you haven't heard about agar.io, you probably will quite soon. It is an internet multiplayer game which is being performed by more than 100,000 individuals simultaneously. You consume additional gamers that are smaller and smaller static sectors and start with a little circle. But, the bigger players can-eat you. The objective in the game is really to get as huge as possible and eat as many players as you could. After you get big enough you are getting addicted. You've got a choice to split your circle in 2 so that you can acquire more size, and throw one half at the other players with pace that is larger. You can blend the circles after some time. This game requires the players to get just any kind of a mouse, pc and a web connection. It is addicting and very enjoyable. Yes, it is somewhat hard on the beginning, but when you get some good bulk and get the hang of it, you'll possess plenty of enjoyable beating everybody in front of you. Where you play against everyone you might have the choice to perform in a Free-For-All style, or you can definitely play in groups. You are created in play and a random team from the other two teams. This way is good because when you are very small, one other team members which can be bigger-than you, can protect you until you acquire some bulk. The Agar.io cheat does all this for you.

Posted by: agario cheat | 2015.06.15 at 02:24 AM

Ahaa, its good conversation regarding this post at this place at this website, I have read all that, so at this time me also commenting at this place.

Posted by: minecraft games | 2015.09.10 at 05:07 AM

hey there and thank you for your info - I've definitely picked up anything new from right here. I did however expertise several technical points using this web site, since I experienced to reload the web site a lot of times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I'm complaining, but sluggish loading instances times will very frequently affect your placement in google and can damage your quality score if ads and marketing with Adwords. Anyway I'm adding this RSS to my e-mail and could look out for a lot more of your respective exciting content. Make sure you update this again soon.

Posted by: lasertest | 2015.10.14 at 07:38 PM

Hurrah! Finally I got a website from where I be able to in fact get valuable data regarding my study and knowledge.

Posted by: lasertest | 2015.10.15 at 08:03 PM

Applicable native taxes may apply.

Posted by: Rosetta | 2015.10.19 at 11:16 AM

When I initially left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I recieve four emails with the same comment. Is there a means you are able to remove me from that service? Cheers!

Posted by: jurassic world cheats | 2015.10.20 at 12:34 PM

Truly when someone doesn't know afterward its up to other users that they will help, so here it takes place.

Posted by: Act of Aggression Maphack | 2015.10.22 at 08:46 AM

Hi there everyone, it's my first go to see at this web site, and piece of writing is genuinely fruitful in favor of me, keep up posting these articles.

Posted by: antalya escort | 2015.10.22 at 04:30 PM

I've been exploring for a bit for any high quality articles or blog posts in this kind of house . Exploring in Yahoo I ultimately stumbled upon this site. Reading this info So i'm happy to show that I have an incredibly just right uncanny feeling I found out just what I needed. I such a lot unquestionably will make certain to do not disregard this web site and give it a glance on a relentless basis.

Posted by: crazy taxi city rush hack ios | 2015.10.24 at 12:45 AM

Wow, amazing blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is excellent, as well as the content!

Posted by: Efamilyportal.com | 2015.10.27 at 04:39 AM

Howdy would you mind sharing which blog platform you're working with? I'm going to start my own blog soon but I'm having a tough time choosing between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I'm looking for something completely unique. P.S My apologies for being off-topic but I had to ask!

Posted by: hack para wolfteam | 2015.10.27 at 07:02 AM

Asking questions are in fact nice thing if you are not understanding anything totally, but this paragraph presents pleasant understanding yet.

Posted by: fat diminisher system pdf | 2015.10.27 at 10:15 PM

My spouse and I stumbled over here from a different website and thought I might as well check things out. I like what I see so i am just following you. Look forward to checking out your web page repeatedly.

Posted by: fat diminisher system free download | 2015.10.28 at 02:10 AM

I go to see everyday a few sites and websites to read posts, but this website presents quality based writing.

Posted by: hansonyszrndqvvk.webnode.com | 2015.10.30 at 04:40 PM

Keep on writing, great job!

Posted by: Cecilia | 2015.11.08 at 07:27 PM

Post a comment



(Not displayed with comment.)




TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/20589/8563724

Listed below are links to weblogs that reference Feed2PodcastっぽいことをWSHでやってみる(RSS speaker):

» ActiveXObject [ActiveXObject]
GExplorer 用とまでいかないですが、スクリプトです。 //gas.js改 ... picks.zuzara.comのユーザを対象に、ブラウザのウィンドウサイズをどの ... JScriptでGmailの未読メール数を取得 【Ajax】prototype.jsのXMLHttpRequest AtlasでのWebサービスの呼び出し Amazon Web Serv... [Read More]

Tracked on 2006.08.18 at 04:35 PM

« RESTとAJAXとIPv6 | Main | TEST OF GOFISH TAG »