You can stop TikTok from collecting data by disabling the app's access to your location and microphone. To do this, open your device's Settings app, tap Privacy, and then disable the switches for Location and Microphone.