Skip to content

Instantly share code, notes, and snippets.

@KazukoShikiya
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KazukoShikiya/ddd9c2d6565e9a12a215 to your computer and use it in GitHub Desktop.
Save KazukoShikiya/ddd9c2d6565e9a12a215 to your computer and use it in GitHub Desktop.
4/28のPepperくんイベントで試したソースコード
import com.aldebaran.qi.Application;
import com.aldebaran.qi.Session;
import com.aldebaran.qi.helper.proxies.*;
public class HelloPepper {
public static void main(String[] args) throws Exception {
Application app = new Application(args,"tcp://pepper.local:9559");
try {
app.start();
Session session = app.session();
ALTextToSpeech tts = new ALTextToSpeech(session);
tts.setLanguage("Japanese");
tts.say("Java女子部だー");
} catch (Exception e) {
e.printStackTrace();
}
}
}
@KazukoShikiya
Copy link
Author

com.aldebaran.qi.*のためのjarは、4/28現在、一般公開されていません。

コンパイル・実行には、32bit版のjreが必要でした。

Bonjourがインストールされていない場合は、PepperのIPアドレスで通信するように書き換えます。

@KazukoShikiya
Copy link
Author

"tcp://pepper.local:9559"の部分を、実機orバーチャルロボットに書き換えて実行します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment