Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Speech To Speech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
huggingface
Speech To Speech
Commits
c6762962
Commit
c6762962
authored
6 months ago
by
Andres Marafioti
Browse files
Options
Downloads
Patches
Plain Diff
only import local audio streamer if needed
parent
de59df29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
s2s_pipeline.py
+2
-1
2 additions, 1 deletion
s2s_pipeline.py
with
2 additions
and
1 deletion
s2s_pipeline.py
+
2
−
1
View file @
c6762962
...
...
@@ -37,7 +37,6 @@ from transformers import (
from
parler_tts
import
ParlerTTSForConditionalGeneration
,
ParlerTTSStreamer
import
librosa
from
local_audio_streamer
import
LocalAudioStreamer
from
utils
import
VADIterator
,
int2float
,
next_power_of_2
# Ensure that the necessary NLTK resources are available
...
...
@@ -746,6 +745,8 @@ def main():
lm_response_queue
=
Queue
()
if
module_kwargs
.
mode
==
"
local
"
:
from
local_audio_streamer
import
LocalAudioStreamer
local_audio_streamer
=
LocalAudioStreamer
(
input_queue
=
recv_audio_chunks_queue
,
output_queue
=
send_audio_chunks_queue
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment