From 372c828e6ca49fb76724262939a6179dd45f0bcf Mon Sep 17 00:00:00 2001 From: Pete Warden Date: Mon, 3 Jan 2022 17:25:19 -0800 Subject: [PATCH] Improved error message --- src/spchcat.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spchcat.cc b/src/spchcat.cc index 7fea8a1..caacce1 100644 --- a/src/spchcat.cc +++ b/src/spchcat.cc @@ -663,6 +663,9 @@ int TranscribeLiveSource(ModelState* ctx, const char* source_name) NULL, app_name, PA_STREAM_RECORD, device, "spchcat", &ss, NULL, NULL, &error))) { fprintf(stderr, __FILE__ ": pa_simple_new() failed: %s\n", pa_strerror(error)); + fprintf(stderr, "You may see this error if no microphone or audio source is found.\n"); + fprintf(stderr, "The command 'pactl list sources' will show which devices PulseAudio is aware of.\n"); + fprintf(stderr, "You can use the contents of the 'Name:' field as the '--source' argument to specify one.\n"); goto finish; }