Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

seamless_streaming_s2t.py 1.4 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  1. # Copyright (c) Meta Platforms, Inc. and affiliates
  2. # All rights reserved.
  3. #
  4. # This source code is licensed under the license found in the
  5. # MIT_LICENSE file in the root directory of this source tree.
  6. from seamless_communication.streaming.agents.detokenizer import DetokenizerAgent
  7. from seamless_communication.streaming.agents.offline_w2v_bert_encoder import (
  8. OfflineWav2VecBertEncoderAgent,
  9. )
  10. from seamless_communication.streaming.agents.online_feature_extractor import (
  11. OnlineFeatureExtractorAgent,
  12. )
  13. from seamless_communication.streaming.agents.online_text_decoder import (
  14. MMASpeechToTextDecoderAgent,
  15. )
  16. from seamless_communication.streaming.agents.silero_vad import SileroVADAgent
  17. from seamless_communication.streaming.agents.unity_pipeline import UnitYAgentPipeline
  18. class SeamlessStreamingS2TDetokAgent(UnitYAgentPipeline):
  19. pipeline = [
  20. OnlineFeatureExtractorAgent,
  21. OfflineWav2VecBertEncoderAgent,
  22. MMASpeechToTextDecoderAgent,
  23. DetokenizerAgent,
  24. ]
  25. class SeamlessStreamingS2TAgent(UnitYAgentPipeline):
  26. pipeline = [
  27. OnlineFeatureExtractorAgent,
  28. OfflineWav2VecBertEncoderAgent,
  29. MMASpeechToTextDecoderAgent,
  30. ]
  31. class SeamlessStreamingS2TVADAgent(UnitYAgentPipeline):
  32. pipeline = [
  33. SileroVADAgent,
  34. OnlineFeatureExtractorAgent,
  35. OfflineWav2VecBertEncoderAgent,
  36. MMASpeechToTextDecoderAgent,
  37. DetokenizerAgent,
  38. ]
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...