tiantiaf commited on
Commit
c2d8e50
·
verified ·
1 Parent(s): f5f7fec

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -2
README.md CHANGED
@@ -78,8 +78,11 @@ emotion_label_list = [
78
  'Other'
79
  ]
80
 
81
- # Load data, here just zeros as the example, audio data should be 16kHz mono channel
82
- data = torch.zeros([1, 16000]).float().to(device)
 
 
 
83
  logits, embedding, _, _, _, _ = model(
84
  data, return_feature=True
85
  )
 
78
  'Other'
79
  ]
80
 
81
+ # Load data, here just zeros as the example
82
+ # Our training data filters output audio shorter than 3 seconds (unreliable predictions) and longer than 15 seconds (computation limitation)
83
+ # So you need to prepare your audio to a maximum of 15 seconds, 16kHz and mono channel
84
+ max_audio_length = 15 * 16000
85
+ data = torch.zeros([1, 16000]).float().to(device)[:, :max_audio_length]
86
  logits, embedding, _, _, _, _ = model(
87
  data, return_feature=True
88
  )