Skip to content

Some necessary tweaks for recent spyder under conda #4

@Pytheas54

Description

@Pytheas54
  • Spyder version: 6.0.5 (conda)
  • Python version: 3.12.3 64-bit
  • Qt version: 5.15.2
  • PyQt5 version: 5.15.10
  • Operating System: Windows-11-10.0.26100-SP0
  • 'import math' should be deleted
  • simpleaudio crashes the kernel
    You can replace it by playsound3 from PyPi, install with pip is ok in conda. I use version 2.5.2, I have not tried newer versions
    Use it in the 'def save ' function

'#import simpleaudio as sa'
'from playsound3 import playsound as play3'
...
'# sa.play_buffer(y, num_channels=1, bytes_per_sample=2, sample_rate=16_000)'
....
def save(self, path):
y = self._get_int16at16K()
write(path, 16_000, y)
play3(path)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions