Skip to content

Commit a0ed6f8

Browse files
Apply suggestions from code review
Co-authored-by: John | Elite Encoder <john@eliteencoder.net>
1 parent b85d01d commit a0ed6f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nodes/audio_utils/pitch_shift.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ def IS_CHANGED(cls):
2727

2828
def execute(self, audio, sample_rate, pitch_shift):
2929
audio_float = audio.astype(np.float32) / 32768.0
30-
shifted_audio = librosa.effects.pitch_shift(audio_float, sample_rate, n_steps=pitch_shift)
30+
shifted_audio = librosa.effects.pitch_shift(y=audio_float, sr=sample_rate, n_steps=pitch_shift)
3131
shifted_int16 = np.clip(shifted_audio * 32768.0, -32768, 32767).astype(np.int16)
3232
return shifted_int16, sample_rate

src/comfystream/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, max_workers: int = 1, **kwargs):
2222

2323
async def set_prompts(self, prompts: List[PromptDictInput]):
2424
self.current_prompts = [convert_prompt(prompt) for prompt in prompts]
25-
for idx in range(self.current_prompts):
25+
for idx in range(len(self.current_prompts)):
2626
task = asyncio.create_task(self.run_prompt(idx))
2727
self.running_prompts[idx] = task
2828

ui/src/components/settings.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function ConfigForm({ config, onSubmit }: ConfigFormProps) {
146146

147147
const getVideoDevices = useCallback(async () => {
148148
try {
149-
await navigator.mediaDevices.getUserMedia({ video: true });
149+
await navigator.mediaDevices.getUserMedia({ video: true, audio: true });
150150

151151
const devices = await navigator.mediaDevices.enumerateDevices();
152152
const videoDevices = [

0 commit comments

Comments
 (0)