Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed unneeded initialisation parameters
  • Loading branch information
SaschaCowley committed Dec 16, 2024
commit ad90022a51ff6f309849c6a0c549b9fc57c09c55
7 changes: 1 addition & 6 deletions source/nvwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,20 +267,15 @@ def __init__(
samplesPerSec: int,
bitsPerSample: int,
outputDevice: str = DEFAULT_DEVICE_KEY,
closeWhenIdle: bool = False,
wantDucking: bool = True,
buffered: bool = False,
purpose: AudioPurpose = AudioPurpose.SPEECH,
):
"""Constructor.
@param channels: The number of channels of audio; e.g. 2 for stereo, 1 for mono.
@param samplesPerSec: Samples per second (hz).
@param bitsPerSample: The number of bits per sample.
@param outputDevice: The name of the audio output device to use,
WAVE_MAPPER for default.
@param closeWhenIdle: Deprecated; ignored.
@param outputDevice: The name of the audio output device to use, defaults to WasapiWavePlayer.DEFAULT_DEVICE_KEY
@param wantDucking: if true then background audio will be ducked on Windows 8 and higher
@param buffered: Whether to buffer small chunks of audio to prevent audio glitches.
@param purpose: The purpose of this audio.
@note: If C{outputDevice} is a name and no such device exists, the default device will be used.
@raise WindowsError: If there was an error opening the audio output device.
Expand Down
1 change: 0 additions & 1 deletion source/synthDrivers/_espeak.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ def initialize(indexCallback=None):
samplesPerSec=sampleRate,
bitsPerSample=16,
outputDevice=config.conf["speech"]["outputDevice"],
buffered=True,
)
onIndexReached = indexCallback
espeakDLL.espeak_SetSynthCallback(callback)
Expand Down