This commit is contained in:
wangjiyu 2025-04-15 11:12:23 +08:00
parent c8a10100b1
commit c0330e46fd
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ srcChannelIndex = 46
destChannelIndex = 47 destChannelIndex = 47
def my_callback(npData, dataSize, dataCount, sampleRate, numChannels, channelIndex): def my_callback(npData, dataSize, dataCount, sampleRate, numChannels, channelIndex):
print(f"dataSize:{dataSize}, dataCount:{dataCount}, sampleRate:{sampleRate}, numChannels:{numChannels}, channelIndex:{channelIndex}") print(f"dataSize:{dataSize}, dataCount:{dataCount}, sampleRate:{sampleRate}, numChannels:{numChannels}, channelIndex:{channelIndex}")
print(npData)
#audioData = np.array([0, 1, -1, 0], dtype=np.int16) #audioData = np.array([0, 1, -1, 0], dtype=np.int16)
#ret = rtc_plugins.sendCustomAudioData(srcChannelIndex, audioData, 48000, 1, len(audioData)) #ret = rtc_plugins.sendCustomAudioData(srcChannelIndex, audioData, 48000, 1, len(audioData))
#if ret != 0: #if ret != 0: