static int setPortParameter (const char *name, swift_val *value) { swift_result_t result = swift_port_set_param(swiftPort, name, value, SWIFT_ASYNC_NONE); if (result == SWIFT_SUCCESS) return 1; speechError(result, "parameter set"); return 0; }
/** Set Swift port param */ static apt_bool_t mrcp_swift_channel_param_set(mrcp_swift_channel_t *synth_channel, const char *name, swift_val *val) { swift_result_t res; if(SWIFT_FAILED(res = swift_port_set_param(synth_channel->port,name,val,synth_channel->tts_stream)) ) { const char *error_string = swift_strerror(res); apt_log(APT_LOG_MARK,APT_PRIO_DEBUG,"Swift Param %s: %s",name,error_string); return FALSE; } return TRUE; }