Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement inaSpeechSegmenter #1162

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Implement inaSpeechSegmenter #1162

wants to merge 8 commits into from

Conversation

yuki399
Copy link

@yuki399 yuki399 commented Jun 19, 2023

@kyakuno
Copy link
Collaborator

kyakuno commented Jul 10, 2023

@yuki399 PR、ありがとうございます。モデルファイルを共有いただければ幸いです。

@kyakuno
Copy link
Collaborator

kyakuno commented Jul 11, 2023

@kyakuno
Copy link
Collaborator

kyakuno commented Jul 11, 2023

@yuki399 フォルダ名の大文字・小文字はファイルシステムによっては区別できないため、フォルダ名をinaSpeechSegmenterからina_speech_segmenterに変更いただけますでしょうか。

@yuki399
Copy link
Author

yuki399 commented Jul 11, 2023

フォルダ名に関して修正しました

@kyakuno
Copy link
Collaborator

kyakuno commented Dec 5, 2023

macOSだとpyannoteが見つからない。

No matching distribution found for pyannote

@kyakuno
Copy link
Collaborator

kyakuno commented Dec 5, 2023

pip3 install pyannote.algorithms
が必要らしい。

@kyakuno
Copy link
Collaborator

kyakuno commented Dec 5, 2023

実行すると下記のエラーになる。

^^^^^
  File "/Users/kyakuno/Desktop/repos/ailia-models-ax/audio_processing/ina_speechs_egmenter/inaSpeechSegmenter_util.py", line 387, in _energy_activity
    return viterbi_decoding(pred2logemission(raw_activity),
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pyannote/algorithms/utils/viterbi.py", line 172, in viterbi_decoding
    emission = _update_emission(emission, consecutive)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pyannote/algorithms/utils/viterbi.py", line 86, in _update_emission
    return np.vstack(
           ^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/numpy/core/shape_base.py", line 216, in _vhstack_dispatcher
    return _arrays_for_stack_dispatcher(tup)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/numpy/core/shape_base.py", line 209, in _arrays_for_stack_dispatcher
    raise TypeError('arrays to stack must be passed as a "sequence" type '
TypeError: arrays to stack must be passed as a "sequence" type such as list or tuple.
kyakuno@mbakk ina_speechs_egmenter % 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants