/get_speech_duration#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/get_speech_duration Quick Facts

Category

Speech and language processing

Message type

pal_interaction_msgs/GetSpeechDuration

Quick snippets#

Call the service from command-line#
$ rosservice call /get_speech_duration pal_interaction_msgs/GetSpeechDuration
# (tip: press Tab to complete the message prototype)
Call the service from a Python script#
#!/usr/bin/env python

import rospy
from pal_interaction_msgs.srv import *


if __name__ == "__main__":

    rospy.wait_for_service("/get_speech_duration")

    try:
        proxy = rospy.ServiceProxy("/get_speech_duration", GetSpeechDuration)
        response = proxy(args...) # check the pal_interaction_msgs/GetSpeechDuration message type for the expected arguments
        rospy.loginfo(response)

    except rospy.ServiceException as e:
        rospy.logerror("Service call failed: %s" % e)

REST endpoint#

You can also access this service from a webpage displayed on the robot’s touchscreen via this endpoint:

http://ari-0c/service/pal_get_tts_duration

(replace ari-0c by the serial number of your own robot).

See REST interface for the general documentation of the REST endpoints and code samples.