def generate_subs(speed, source_speed, source_subs):
 if (speed == source_speed):
  return source_subs
 coefficient = ((1.0 * speed) / source_speed)
 subs = {'start': [int(round((timestamp * coefficient))) for timestamp in source_subs['start']], 'end': [int(round((timestamp * coefficient))) for timestamp in source_subs['end']], 'text': source_subs['text']}
 return subs

def generate_subs ( speed , source_speed , source_subs ) : if ( speed == source_speed ) : return source_subs coefficient = ( ( 1.0 * speed ) / source_speed ) subs = { 'start' : [ int ( round ( ( timestamp * coefficient ) ) ) for timestamp in source_subs [ 'start' ] ] , 'end' : [ int ( round ( ( timestamp * coefficient ) ) ) for timestamp in source_subs [ 'end' ] ] , 'text' : source_subs [ 'text' ] } return subs
generate transcripts from one speed to another speed .