| 2201 | } |
| 2202 | |
| 2203 | void rcli_stop_speaking(RCLIHandle handle) { |
| 2204 | if (!handle) return; |
| 2205 | auto* engine = static_cast<RCLIEngine*>(handle); |
| 2206 | pid_t pid = engine->tts_pid.exchange(0, std::memory_order_acq_rel); |
| 2207 | if (pid > 0) { |
| 2208 | kill(pid, SIGTERM); |
| 2209 | } |
| 2210 | } |
| 2211 | |
| 2212 | int rcli_is_speaking(RCLIHandle handle) { |
| 2213 | if (!handle) return 0; |
no outgoing calls
no test coverage detected