def test_languagebind_model_inference_pipeline_vectorise_audio_no_chunk(self):
        """Test that the pipeline returns the embeddings for the two audio files without chunking."""
        audio_inference_request = InferenceRequest(
            modality=Modality.AUDIO,
            contents=[
                TestAudioUrls.AUDIO1.value, # 5 seconds
                TestAudioUrls.AUDIO2.value # Also 5 seconds
            ],
            device="cuda",
            model_config=ModelConfig(
                model_name=self.model_name,
                model_properties=self.model_properties,
                normalize_embeddings=True
            ),
            preprocessing_config=AudioPreprocessingConfig(
                should_chunk=False,
                download_thread_count=1,
            )
        )

        results = self.inference.vectorise(audio_inference_request)
        self.assertTrue(isinstance(results, InferenceResult))
        self.assertTrue(isinstance(results.result, list))
        self.assertTrue(len(results.result) == 2)

        results_1: list[tuple[str, ndarray]] = results.result[0]
        self.assertTrue(isinstance(results_1, list))
        self.assertTrue(len(results_1) == 1)
        self.assertTrue(isinstance(results_1[0], tuple))
        self.assertTrue(isinstance(results_1[0][0], str))
        self.assertTrue(isinstance(results_1[0][1], np.ndarray))
        self.assertEqual((768,), results_1[0][1].shape)
        self.assertEqual("[0.0, 5.0]", results_1[0][0])

        results_2: list[tuple[str, ndarray]] = results.result[1]
        self.assertTrue(isinstance(results_2, list))
        self.assertTrue(len(results_2) == 1)
        self.assertTrue(isinstance(results_2[0], tuple))
        self.assertTrue(isinstance(results_2[0][0], str))
        self.assertTrue(isinstance(results_2[0][1], np.ndarray))
        self.assertEqual((768,), results_2[0][1].shape)
        self.assertEqual("[0.0, 5.0]", results_2[0][0])
Test that the pipeline returns the embeddings for the two audio files without chunking.
tests/integ_tests/inference/native_inference/test_languagebind_model_inference_pipeline.py