Created
September 2, 2025 14:52
-
-
Save Lycolia/8ace22fcb035aa59d4b953db5f563560 to your computer and use it in GitHub Desktop.
Recording the speaker and own microphone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########################################################### | |
| # | |
| # 自分のマイク入力とスピーカー出力を合成して録音するスクリプト | |
| # オンライン会議の録音などに | |
| # | |
| ############################################################ | |
| Write-Host "録音処理を開始する場合、何かキーを押して下さい..." -NoNewLine | |
| [Console]::ReadKey($true) > $null | |
| $input="Microphone (Sound BlasterX G1)" | |
| $filename=Get-Date -Format "yyyy-MM-dd_HH_mm_ss" | |
| ffmpeg -f dshow -i audio=$input -f dshow -i audio=virtual-audio-capturer -filter_complex "[0:a][1:a]amerge=inputs=2[a]" -map "[a]" "$filename.mp3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment