Skip to content

Commit

Permalink
Improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
petewarden committed Jan 4, 2022
1 parent 0ff082f commit 372c828
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spchcat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 372c828

Please sign in to comment.