- if (len != 3 || buf[0] != 'L' || buf[1] != 'P') {
- SG_LOG(SG_IO, SG_ALERT, "VOICE: something is listening to "
- << host << ':' << port << "', but it doesn't seem "
- "to be Festival");
- _connected = false;
- return;
- }
-
- SG_LOG(SG_IO, SG_BULK, "VOICE: connection to Festival server on `"
+ if (len != 3 || buf[0] != 'L' || buf[1] != 'P')
+ throw string("unexpected or no response from `") + host + ':' + port
+ + "'. Either it's not\n Festival listening,"
+ " or Festival couldn't open a sound device.";
+
+ SG_LOG(SG_IO, SG_INFO, "VOICE: connection to Festival server on `"