From 15adb87942f3ca8d528fcf545ee4dcdd1429992f Mon Sep 17 00:00:00 2001 From: Sveinbjorn Thordarson Date: Wed, 27 Mar 2024 23:02:47 +0000 Subject: [PATCH] Updated project headers + minor cleanup --- README.md | 4 ++-- hear.1 | 4 ++-- hear.1.html | 2 +- hear.rb | 2 +- hear.xcodeproj/project.pbxproj | 37 +--------------------------------- src/Common.h | 2 +- src/Common.m | 2 +- src/Hear.h | 2 +- src/Hear.m | 2 +- src/main.m | 2 +- test/test.sh | 4 ++-- 11 files changed, 14 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 2acfa76..50caa4d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 <[sveinbjorn@sveinbjorn.org](mailto:sveinbjorn@sveinbjorn.org)> Redistribution and use in source and binary forms, with or without modification, diff --git a/hear.1 b/hear.1 index cebd6c3..8a6fd77 100644 --- a/hear.1 +++ b/hear.1 @@ -1,4 +1,4 @@ -.Dd October 27, 2023 +.Dd March 27, 2024 .Dt HEAR 1 .Os Darwin .Sh NAME @@ -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). diff --git a/hear.1.html b/hear.1.html index a99bf04..89302de 100644 --- a/hear.1.html +++ b/hear.1.html @@ -70,4 +70,4 @@ Darwin October 27, 2023 Darwin - + \ No newline at end of file diff --git a/hear.rb b/hear.rb index f65f54a..f88195c 100644 --- a/hear.rb +++ b/hear.rb @@ -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] diff --git a/hear.xcodeproj/project.pbxproj b/hear.xcodeproj/project.pbxproj index bacdd2a..fdda759 100644 --- a/hear.xcodeproj/project.pbxproj +++ b/hear.xcodeproj/project.pbxproj @@ -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 = ""; }; F439F2C327D51D7F00626667 /* test.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = test.wav; sourceTree = ""; }; @@ -131,8 +119,6 @@ buildPhases = ( F43A461727C010B2000469BC /* Sources */, F43A461827C010B2000469BC /* Frameworks */, - F43A461927C010B2000469BC /* CopyFiles */, - F4B96E4729D0FA690023A4BF /* ShellScript */, ); buildRules = ( ); @@ -150,7 +136,7 @@ isa = PBXProject; attributes = { BuildIndependentTargetsInParallel = 1; - LastUpgradeCheck = 1500; + LastUpgradeCheck = 1510; TargetAttributes = { F43A461A27C010B2000469BC = { CreatedOnToolsVersion = 13.2.1; @@ -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; diff --git a/src/Common.h b/src/Common.h index a706273..00c2cbb 100644 --- a/src/Common.h +++ b/src/Common.h @@ -1,7 +1,7 @@ /* hear - Command line speech recognition for macOS - Copyright (c) 2022-2023 Sveinbjorn Thordarson + Copyright (c) 2022-2024 Sveinbjorn Thordarson All rights reserved. Redistribution and use in source and binary forms, with or without modification, diff --git a/src/Common.m b/src/Common.m index bceaf1f..7a01786 100644 --- a/src/Common.m +++ b/src/Common.m @@ -1,7 +1,7 @@ /* hear - Command line speech recognition for macOS - Copyright (c) 2022-2023 Sveinbjorn Thordarson + Copyright (c) 2022-2024 Sveinbjorn Thordarson All rights reserved. Redistribution and use in source and binary forms, with or without modification, diff --git a/src/Hear.h b/src/Hear.h index 6e23ad4..bb278a2 100644 --- a/src/Hear.h +++ b/src/Hear.h @@ -1,7 +1,7 @@ /* hear - Command line speech recognition for macOS - Copyright (c) 2022-2023 Sveinbjorn Thordarson + Copyright (c) 2022-2024 Sveinbjorn Thordarson All rights reserved. Redistribution and use in source and binary forms, with or without modification, diff --git a/src/Hear.m b/src/Hear.m index a7389e5..421e8b2 100644 --- a/src/Hear.m +++ b/src/Hear.m @@ -1,7 +1,7 @@ /* hear - Command line speech recognition for macOS - Copyright (c) 2022-2023 Sveinbjorn Thordarson + Copyright (c) 2022-2024 Sveinbjorn Thordarson All rights reserved. Redistribution and use in source and binary forms, with or without modification, diff --git a/src/main.m b/src/main.m index f60e813..41f503c 100644 --- a/src/main.m +++ b/src/main.m @@ -1,7 +1,7 @@ /* hear - Command line speech recognition for macOS - Copyright (c) 2022-2023 Sveinbjorn Thordarson + Copyright (c) 2022-2024 Sveinbjorn Thordarson All rights reserved. Redistribution and use in source and binary forms, with or without modification, diff --git a/test/test.sh b/test/test.sh index fed67c9..79d7246 100755 --- a/test/test.sh +++ b/test/test.sh @@ -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