Complete the code to calculate the duration of an audio clip in seconds.
duration = num_samples [1] sample_rateDuration is the number of samples divided by the sample rate.
Complete the code to compute the bit rate of an audio file.
bit_rate = sample_rate [1] bit_depth [2] channels
Bit rate is sample rate times bit depth times number of channels.
Fix the error in the code to normalize audio samples between -1 and 1.
normalized_samples = samples [1] max(abs(samples))
To normalize, divide samples by the maximum absolute value.
Fill both blanks to create a dictionary of word lengths for words longer than 3 characters.
{word: [1] for word in words if len(word) [2] 3}The dictionary maps each word to its length if the word length is greater than 3.
Fill all three blanks to create a dictionary of uppercase words and their lengths for words longer than 4.
{ [1]: [2] for [3] in words if len([3]) > 4 }The dictionary uses uppercase words as keys and their lengths as values, iterating with variable 'w'.
