
    1h                     ~    S SK r S SKrS SKrS SKr " S S\R
                  5      r\S:X  a  \R                  " 5         gg)    Nc                       \ rS rSrS r\R                  " \R                  R                  S5      S5      S 5       r
S	S jrSrg)
TestSpecialFeatures   c                 
   [         R                  R                  [         R                  R                  [         R                  R	                  [
        5      5      S5      U l        U R                  [        U R                  5        g )Nzenglish.wav)
ospathjoindirnamerealpath__file__AUDIO_FILE_ENaddTypeEqualityFuncstrassertSameWords)selfs    S/var/www/auris/envauris/lib/python3.13/site-packages/tests/test_special_features.pysetUpTestSpecialFeatures.setUp   sL    WW\\"''//"'':J:J8:T*UWde  d&:&:;    winzskip on Windowsc                 L   [         R                  R                  U R                  5      n[         R                  " 5       nU R                  UR                  U/ SQS9S5        U R                  UR                  U/ SQS9S5        U R                  UR                  U/ SQS9S5        g )N))one      ?)twor   )threer   )keyword_entrieszthree two one))wanffffff?)toor   )treer   ztoo wan))unr   )tor   )teer   zto un)sr	AudioData	from_filer   
RecognizerassertEqualrecognize_sphinx)r   audiors      r   test_sphinx_keywords(TestSpecialFeatures.test_sphinx_keywords   s    &&t'9'9:MMO++ECo+p  sB  	C++ECo+pr{|++ECl+movwr   Nc                     [        UR                  5       5      n[        UR                  5       5      nXE:w  a!  U R                  Ub  U5      eU< SU< 35      eg )Nz& doesn't consist of the same words as )setsplitfailureException)r   tested	referencemsg
set_testedset_references         r   r   #TestSpecialFeatures.assertSameWords   sf    (
IOO-.&''s  H  Htz  }F  EG  H  H 'r   )r   )N)__name__
__module____qualname____firstlineno__r   unittestskipIfsysplatform
startswithr,   r   __static_attributes__ r   r   r   r      s?    < __S\\,,U35FGx HxHr   r   __main__)	r   r>   r<   speech_recognitionr$   TestCaser   r8   mainrB   r   r   <module>rG      s?    
 
  H(++ H, zMMO r   