edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits
| 1 | //! Voice-over recording against the private audio stack. Ignored by default: it |
| 2 | //! needs a PulseAudio-protocol server and a tone playing into the `edtest` sink |
| 3 | //! while it runs. It only ever talks to the server named by `PULSE_SERVER`, so |
| 4 | //! point it at the private stack (`scratchpad/pulse/private-audio.sh`): |
| 5 | //! |
| 6 | //! ```text |
| 7 | //! PULSE_SERVER=unix:/tmp/edpa-run/pulse/native \ |
| 8 | //! cargo test -p engine --release --test voiceover_record -- --ignored --nocapture --test-threads=1 |
| 9 | //! ``` |
| 10 | |
| 11 | use Duration; |
| 12 | |
| 13 | use pulse; |
| 14 | use Recorder; |
| 15 | |
| 16 | /// The private stack's null sink monitor, the input the tone is played into. |
| 17 | const SOURCE: &str = "edtest.monitor"; |
| 18 | /// The tone the test expects to hear. |
| 19 | const TONE_HZ: f64 = 1000.0; |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 |