def detect_intent_audio(project_id, session_id, audio_file_path,<EOL>language_code):
import dialogflow_v2 as dialogflow<EOL>session_client = dialogflow.SessionsClient()<EOL>audio_encoding = dialogflow.enums.AudioEncoding.AUDIO_ENCODING_LINEAR_16<EOL>sample_rate_hertz = <NUM_LIT><EOL>session = session_client.session_path(project_id, session_id)<EOL>print('<STR_LIT>'.format(session))<EOL>with open(audio_file_path, '<STR_LIT:rb>') as audio_file:<EOL><INDENT>input_audio = audio_file.read()<EOL><DEDENT>audio_config = dialogflow.types.InputAudioConfig(<EOL>audio_encoding=audio_encoding, language_code=language_code,<EOL>sample_rate_hertz=sample_rate_hertz)<EOL>query_input = dialogflow.types.QueryInput(audio_config=audio_config)<EOL>response = session_client.detect_intent(<EOL>session=session, query_input=query_input,<EOL>input_audio=input_audio)<EOL>print('<STR_LIT:=>' * <NUM_LIT:20>)<EOL>print('<STR_LIT>'.format(response.query_result.query_text))<EOL>print('<STR_LIT>'.format(<EOL>response.query_result.intent.display_name,<EOL>response.query_result.intent_detection_confidence))<EOL>print('<STR_LIT>'.format(<EOL>response.query_result.fulfillment_text))<EOL>
Returns the result of detect intent with an audio file as input.

    Using the same `session_id` between requests allows continuation
    of the conversaion.