#!/bin/sh
#] 
#] *********************
#] $ bash "$d_bin"'audio cut.sh' 
# www.BillHowell.ca   7Nov2023 initial 
# view in text editor, using constant-width font (eg courier), tabWidth = 3



# use 'https://cloud.google.com/try-speech-to-text' to product text

#24************************24




#24************************24
# List of operators, generated with :
# $ grep  "^#]"  "$d_bin"'audio cut.sh' |  sed "s/^#\]/  /" 

#




#08********08
# Setup 

source  "$d_bin""standard header.sh"


#08********08
# 

	#avconv -i  "/media/bill/HOWELL_BASE/My Music/Abba/Abba - Greatest hits.wav"  -ss 00:34:00  -t  00:03:04  "/media/bill/HOWELL_BASE/My Music mp3/Abba - Greatest Hits/Abba - Money, money, money 3m4s.mp3"  


	audio_bag()
{
	# no change in codec, -to is stop position (time) : 
	d_audio="$d_web"'Neural nets/MindCode/voice musings/' 

	p_sourc="$d_audio"'231106_2212 hodge-podge.mp3'
	ffmpeg -i  "$p_sourc"  -ss 00:00:00  -to  00:01:22  "$d_audio"'231106_2212 Glenn Borchardts concept of infinity, avoid myopic thinking.mp3'  
	#ffmpeg -i  "$p_sourc"  -ss 00:01:22  -to  00:04:30  "$d_audio"'231106_2212 plants, fungi, algae.mp3'  
	ffmpeg -i  "$p_sourc"  -ss 00:04:30  -to  00:05:00  "$d_audio"'231106_2212 computations by [massive, diverse] DNA coding segments.mp3'  
	ffmpeg -i  "$p_sourc"  -ss 00:05:00  -to  00:05:10  "$d_audio"'231106_2212 Computational biology journal - havent been reading my subscription.mp3'  
	ffmpeg -i  "$p_sourc"  -ss 00:05:10  -to  00:05:57  "$d_audio"'231106_2212 [learn, evolve] and Stephen Grossber.mp3'  
	ffmpeg -i  "$p_sourc"  -ss 00:05:57  -to  00:06:55  "$d_audio"'231106_2212 does MindCode [reflect, teach us] about modern computing languages.mp3'  
	ffmpeg -i  "$p_sourc"  -ss 00:06:55  -to  00:08:12  "$d_audio"'231106_2212 what can evolution tell us about evolution.mp3'  
	ffmpeg -i  "$p_sourc"  -ss 00:08:12						 "$d_audio"'231106_2212 still missing a reference to arithmetic, [integer, real] numbers.mp3'  

	p_sourc="$d_audio"'231111_1622 hodge-podge.mp3'
	ffmpeg -i  "$p_sourc"  -ss 00:00:00  -to  00:00:04  "$d_audio"'231111_1622 mind without neurons.mp3'  

	d_audio="$d_web"'Neural nets/MindCode/voice musings/' 
	p_sourc="$d_audio"'231111_1622 hodge-podge.mp3'

	ffmpeg -i  "$p_sourc"  -ss 00:00:00  -to  00:00:04  "$d_audio"'231111_1622 mind without neurons.mp3'  


}


#] audio_cut()  - cut a segment of an audio file

	audio_cut()
{  
	# no change in codec, -to is stop position (time) : 
	d_audio="$d_web"'ProjMini/Kaal- Structured Atom Model/vidAudios/' 
	pSource="$d_audio"'Edwin Kaal: The Proton-Electron Atom.mp3'
	pOutput="$pSource"'.cut.mp3'

	ffmpeg -i  "$pSource"  -ss 00:00:00  -to  00:41:25  "$pOutput"  
}  



#08********08
# run - select one of options

	audio_cut





# $ bash  "$d_bin"'audio cut.sh'  

# enddoc
