Skip to content

Commit

Permalink
Updated project headers + minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Mar 27, 2024
1 parent b99795a commit 15adb87
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 49 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ hear -d -i /path/to/someone_speaking.mp3 > transcribed_text.txt

The `-d` flag specifies that only on-device speech recognition capabilities
should be used. Otherwise, data may be sent to Apple servers, which as of
writing (2023) have a hard limit of something like 500 characters before quitting.
writing (2024) have a hard limit of about 500 characters before quitting.

## Build

Expand All @@ -93,7 +93,7 @@ If running the binary leads to an abort signal, try running the binary by right-

## BSD License

Copyright (c) 2022-2023 Sveinbjorn Thordarson
Copyright (c) 2022-2024 Sveinbjorn Thordarson
<[[email protected]](mailto:[email protected])>

Redistribution and use in source and binary forms, with or without modification,
Expand Down
4 changes: 2 additions & 2 deletions hear.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.Dd October 27, 2023
.Dd March 27, 2024
.Dt HEAR 1
.Os Darwin
.Sh NAME
Expand Down Expand Up @@ -32,7 +32,7 @@ Only use on-device offline speech recognition. The default is to use whatever
the macOS Speech Recognition API thinks is best, which may include sending data
to Apple servers. When on-device is not enabled, there may be a hard limit to
the length of audio that can be transcribed in a single session. As of writing
(2023) this is about 500 characters or so.
(2024) this is about 500 characters or so.
.It Fl m -mode
Enable single-line output mode (only applies when the input is default audio
input device, e.g. microphone).
Expand Down
2 changes: 1 addition & 1 deletion hear.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@

Darwin October 27, 2023 Darwin
</font></pre>
</body></html>
</body></html>
2 changes: 1 addition & 1 deletion hear.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Hear < Formula
desc "Command-line speech recognition and transcription for macOS"
homepage "https://sveinbjorn.org/hear"
url "https://github.com/sveinbjornt/hear/archive/refs/tags/0.5.tar.gz"
sha256 "671982c2361e636c79c5118684f73df2d0f282461e128ea0dc6034165819c520"
sha256 "b38d2a84511e7decebe007f2b073a69ccc1092a8014efb33610e134eca19c038"
license "BSD-3-Clause"

depends_on xcode: ["10.0", :build]
Expand Down
37 changes: 1 addition & 36 deletions hear.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@
F4A6209F29EEC7BB00DD9BE1 /* Speech.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4A6209E29EEC7BB00DD9BE1 /* Speech.framework */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
F43A461927C010B2000469BC /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
F439F2C027D5157A00626667 /* install.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = install.sh; sourceTree = "<group>"; };
F439F2C327D51D7F00626667 /* test.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = test.wav; sourceTree = "<group>"; };
Expand Down Expand Up @@ -131,8 +119,6 @@
buildPhases = (
F43A461727C010B2000469BC /* Sources */,
F43A461827C010B2000469BC /* Frameworks */,
F43A461927C010B2000469BC /* CopyFiles */,
F4B96E4729D0FA690023A4BF /* ShellScript */,
);
buildRules = (
);
Expand All @@ -150,7 +136,7 @@
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastUpgradeCheck = 1500;
LastUpgradeCheck = 1510;
TargetAttributes = {
F43A461A27C010B2000469BC = {
CreatedOnToolsVersion = 13.2.1;
Expand All @@ -175,27 +161,6 @@
};
/* End PBXProject section */

/* Begin PBXShellScriptBuildPhase section */
F4B96E4729D0FA690023A4BF /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\n# strip -Tx \"$SRCROOT/products/hear\"\n";
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
F43A461727C010B2000469BC /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down
2 changes: 1 addition & 1 deletion src/Common.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
hear - Command line speech recognition for macOS
Copyright (c) 2022-2023 Sveinbjorn Thordarson <[email protected]>
Copyright (c) 2022-2024 Sveinbjorn Thordarson <[email protected]>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Expand Down
2 changes: 1 addition & 1 deletion src/Common.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
hear - Command line speech recognition for macOS
Copyright (c) 2022-2023 Sveinbjorn Thordarson <[email protected]>
Copyright (c) 2022-2024 Sveinbjorn Thordarson <[email protected]>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Expand Down
2 changes: 1 addition & 1 deletion src/Hear.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
hear - Command line speech recognition for macOS
Copyright (c) 2022-2023 Sveinbjorn Thordarson <[email protected]>
Copyright (c) 2022-2024 Sveinbjorn Thordarson <[email protected]>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Expand Down
2 changes: 1 addition & 1 deletion src/Hear.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
hear - Command line speech recognition for macOS
Copyright (c) 2022-2023 Sveinbjorn Thordarson <[email protected]>
Copyright (c) 2022-2024 Sveinbjorn Thordarson <[email protected]>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Expand Down
2 changes: 1 addition & 1 deletion src/main.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
hear - Command line speech recognition for macOS
Copyright (c) 2022-2023 Sveinbjorn Thordarson <[email protected]>
Copyright (c) 2022-2024 Sveinbjorn Thordarson <[email protected]>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
Expand Down
4 changes: 2 additions & 2 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ test_transcribe_file() {
WAV_PATH="$TEST_ROOT/test.wav"
test_transcribe_file $WAV_PATH

WAV_PATH="$TEST_ROOT/test.mp3"
test_transcribe_file $WAV_PATH
MP3_PATH="$TEST_ROOT/test.mp3"
test_transcribe_file $MP3_PATH

0 comments on commit 15adb87

Please sign in to comment.