mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-01 14:16:05 +08:00
Brighten high-readability profiles and default to level 5
This commit is contained in:
@@ -511,7 +511,7 @@ function handleClassroomEntry() {
|
||||
}
|
||||
|
||||
const voiceMode = ref<VoiceMode>('text')
|
||||
const radioLevel = ref(4)
|
||||
const radioLevel = ref(5)
|
||||
const hasCompletedRadioCheck = ref(false)
|
||||
const tourStarted = ref(false)
|
||||
const stageIndex = ref(0)
|
||||
|
||||
@@ -4035,7 +4035,7 @@ async function playAudioSource(source: CachedAudio, targetRate: number, token: n
|
||||
|
||||
audioElement.value = null
|
||||
|
||||
const readability = Math.max(1, Math.min(5, cfg.value.radioLevel || 3))
|
||||
const readability = Math.max(1, Math.min(5, cfg.value.radioLevel || 5))
|
||||
const mime = source.mime || 'audio/wav'
|
||||
const dataUrl = `data:${mime};base64,${source.base64}`
|
||||
|
||||
|
||||
@@ -1333,7 +1333,7 @@ const radioMode = ref<'atc' | 'intercom'>('atc')
|
||||
const isRecording = ref(false)
|
||||
const micPermission = ref(false)
|
||||
const swapAnimation = ref(false)
|
||||
const signalStrength = ref(4)
|
||||
const signalStrength = ref(5)
|
||||
const speechSpeed = ref(0.95)
|
||||
const radioCheckLoading = ref(false)
|
||||
const radioEffectsEnabled = ref(true)
|
||||
|
||||
@@ -19,7 +19,7 @@ const learnProfileSchema = new mongoose.Schema<LearnProfileDocument>(
|
||||
unlockedModules: { type: [String], default: () => [] },
|
||||
config: {
|
||||
tts: { type: Boolean, default: false },
|
||||
radioLevel: { type: Number, default: 4, min: 1, max: 5 },
|
||||
radioLevel: { type: Number, default: 5, min: 1, max: 5 },
|
||||
voice: { type: String, default: '', trim: true },
|
||||
audioChallenge: { type: Boolean, default: false },
|
||||
audioSpeed: { type: Number, default: 1, min: 0.5, max: 2 },
|
||||
|
||||
@@ -22,7 +22,7 @@ export interface LearnState {
|
||||
|
||||
export const LEARN_CONFIG_DEFAULTS: LearnConfig = {
|
||||
tts: false,
|
||||
radioLevel: 4,
|
||||
radioLevel: 5,
|
||||
voice: '',
|
||||
audioChallenge: true,
|
||||
audioSpeed: 1,
|
||||
|
||||
@@ -50,22 +50,22 @@ const readabilityProfiles: Record<number, ReadabilityProfile> = {
|
||||
noise: { amplitude: 0.055, bandFrequency: 1950, bandQ: 1.2 }
|
||||
},
|
||||
4: {
|
||||
eq: { highpass: 280, highpassQ: 0.65, lowpass: 3600, lowpassQ: 0.8, bandpass: { frequency: 2200, q: 1.15 } },
|
||||
presence: { frequency: 2500, q: 1.25, gain: 2.2 },
|
||||
distortions: [90],
|
||||
tremolos: [{ depth: 0.06, speed: 2.9, type: 'sine' }],
|
||||
gain: 0.97,
|
||||
compressor: { threshold: -26, ratio: 9.5, attack: 0.0025, release: 0.2 },
|
||||
noise: { amplitude: 0.024, bandFrequency: 2100, bandQ: 1.05 }
|
||||
eq: { highpass: 250, highpassQ: 0.6, lowpass: 4200, lowpassQ: 0.78, bandpass: { frequency: 2400, q: 1.05 } },
|
||||
presence: { frequency: 2700, q: 1.18, gain: 2.6 },
|
||||
distortions: [60],
|
||||
tremolos: [{ depth: 0.05, speed: 2.6, type: 'sine' }],
|
||||
gain: 0.99,
|
||||
compressor: { threshold: -25, ratio: 9, attack: 0.0024, release: 0.19 },
|
||||
noise: { amplitude: 0.018, bandFrequency: 2150, bandQ: 1 }
|
||||
},
|
||||
5: {
|
||||
eq: { highpass: 240, highpassQ: 0.6, lowpass: 4100, lowpassQ: 0.76, bandpass: { frequency: 2350, q: 1 } },
|
||||
presence: { frequency: 2750, q: 1.1, gain: 2 },
|
||||
distortions: [45],
|
||||
tremolos: [{ depth: 0.03, speed: 2.1, type: 'sine' }],
|
||||
gain: 1.02,
|
||||
compressor: { threshold: -24, ratio: 8.5, attack: 0.0023, release: 0.17 },
|
||||
noise: { amplitude: 0.012, bandFrequency: 2200, bandQ: 0.95 }
|
||||
eq: { highpass: 220, highpassQ: 0.5, lowpass: 4800, lowpassQ: 0.72, bandpass: { frequency: 2550, q: 0.95 } },
|
||||
presence: { frequency: 3000, q: 1.05, gain: 2.4 },
|
||||
distortions: [35],
|
||||
tremolos: [{ depth: 0.025, speed: 1.9, type: 'sine' }],
|
||||
gain: 1.04,
|
||||
compressor: { threshold: -23, ratio: 8, attack: 0.0022, release: 0.16 },
|
||||
noise: { amplitude: 0.009, bandFrequency: 2250, bandQ: 0.9 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user