#NEWLINE# def recognize_batch_on_worker( self , data , frame_rate ) : #NEWLINE# #INDENT# self . send_request_to_worker ( data [ 'wav' ] , 'BATCH' , frame_rate , has_next = False , new_lm = data [ 'lm' ] ) #NEWLINE# response = self . read_response_from_worker ( ) #NEWLINE# self . worker_socket . disconnect ( self . worker_address ) #NEWLINE# return self . format_response ( response . results , frame_rate . format_batch_recognition_response )