#!/usr/bin/env python

import rospy, os, sys
from sound_play.msg import SoundRequest
from sound_play.libsoundplay import SoundClient

if __name__ == '__main__':
    rospy.init_node('soundplay_test', anonymous = True)
    soundhandle = SoundClient()
    rospy.sleep(1)

    soundhandle.stopAll()

    print 'Uruchomienie TTS'
    soundhandle.say('Witaj świecie!')
    rospy.sleep(3)
        
    s = soundhandle.voiceSound("Witaj świecie")
    s.play()
    rospy.sleep(3)
