Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: record using native tools #6

Open
fsiddi opened this issue Jul 18, 2020 · 4 comments
Open

macOS: record using native tools #6

fsiddi opened this issue Jul 18, 2020 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@fsiddi
Copy link
Collaborator

fsiddi commented Jul 18, 2020

Here is an AppleScript that could be used to record audio using QuickTime instead of FFmpeg.

on run argv
	
	set startStop to item 1 of argv
	
	if startStop = "start" then
		tell application "QuickTime Player"
			set newAudioRecording to new audio recording
			tell newAudioRecording
				start
			end tell
		end tell
	else
		set thePackagePath to POSIX path of "/tmp/NewAudio.qtpxcomposition/"
		tell application "QuickTime Player"
			stop document 1 -- to stop capture
			delay 1
			set thePackageFile to (thePackagePath as POSIX file)
			save document 1 in thePackageFile
			quit
		end tell
		
		set theAudio to POSIX path of thePackagePath & "Audio Recording.m4a"
	end if
end run

run with

osascript /path/to/script.scpt {start, stop}
@enzyme69
Copy link

enzyme69 commented Nov 2, 2020

Is this something that will change the whole system? Or it's only temporary / once every time restart?

@fsiddi
Copy link
Collaborator Author

fsiddi commented Nov 2, 2020

This is just a proof of concept, and it is a localized change.

@pentabi
Copy link

pentabi commented Oct 24, 2021

how do you exactly incorporate this for the add-on? I have no programming experience or anything and I just want to record my voice in blender but it's so hard.

@fsiddi
Copy link
Collaborator Author

fsiddi commented Oct 24, 2021

Incorporating this script requires programming experience, and it's not an ideal solution. I recommend you to record your audio with a dedicated software.

@britalmeida britalmeida added enhancement New feature or request help wanted Extra attention is needed labels Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants