sndwrite_chunked_like
- sndfileio.sndwrite_chunked_like(outfile, likefile, sr=None, metadata=None)[source]
Create a SndWriter with samplerate/format/encoding of the source file
- Parameters:
outfile (
str
) – the file to open for writinglikefile (
str
) – the file to use as referencesr (
Optional
[int
]) – samplerate can be overriddenmetadata (
Optional
[dict
[str
,str
]]) – a dict {str: str}, overrides metadata in likefile. Metadata is not merged, so if metadata is given, it substitutes the metadata in likefile completely. In order to merge it, do that beforehand If None is passed, the metadata in likefile is written to outfile
- Return type:
- Returns: