



import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
		import torch




class 				lowerCAmelCase__	(						unittest.TestCase       ,				UpperCamelCase    ):







					def 			_lowercase      (							self   :  str):
											A__						:				Any         =			load_tool("speech-to-text")
											self.tool.setup()







					def 			_lowercase      (							self   :  List[str]):
											A__						:				Optional[Any]         =			self.tool(torch.ones(3000))
											self.assertEqual(_A      ,		" you")







					def 			_lowercase      (							self   :  str):
											A__						:				int         =			self.tool(audio=torch.ones(3000))
											self.assertEqual(_A      ,		" you")




def 						snake_case__							(       __lowercase							)		->		int:







						"""simple docstring"""

						A__						:				Any         =			0
						for plain_chr in plain_text:
												A__						:				List[str]         =			(
												    ord(__lowercase							) + (hash_value << 6) + (hash_value << 1_6) - hash_value
												)
						return hash_value