#!/usr/bin/perl --
my $api_key='your_api_key';
my $pid="your_pid";
my $piyo = Piyo::Simple->new(
api_key => $api_key,
pid => $pid,
);
#http://piyo.fc2.com/api.html
#詳しい説明は上記URLで。
#URLの表示例
$piyo->public(30)->apiurl;
$piyo->send("テストです")->apiurl;
$piyo->comment(30,10)->apiurl;
$piyo->user(fc2piyostaff2,30)->apiurl;
$piyo->status(fc2piyostaff2,f)->apiurl;
#データ取得例
$piyo->status(midoler,f)->getdata;
#メッセージの送信例
$piyo->send("おはようございます")->post;
#XMLパース例
#これはまだまだ
#$piyo->public(30)->getdata->xmlparse;
>>続きを読む
$ tar zxvf lame-3.97.tar.gz $ cd lame-3.97 $ ./configure --prefix=$HOME/local $ make $ make install■Sound eXchange SOX
$ tar zxvf sox-14.0.1.tar.gz $ cd sox-14.0.1 $ ./configure --prefix=$HOME/local $ make $ make install
% source ~/.cshrc
Decodes Nellymoser Asao encoded audio in FLV files. Turn the raw pcm into a wav, mp3, or whatever you like.
/*
* to get a wav do something like:
* ./nelly2pcm test.flv | sox -t raw -c 1 -2 -r-s - test.wav
*/
これで、wavに変換されて、手元のMedeia Player Classicで再生できました。nelly2pcm foo.flv | sox -r 44100 -t raw -c 1 -s -w - bar.wav