Esempio n. 1
0
        /// ------------------------------------------------------------------------------------
        private string GetIntroMessage()
        {
            string text;
            var    suffix = Path.GetFileNameWithoutExtension(Settings.Default.StandardAudioFileSuffix);

            if (_file.FileType.IsVideo)
            {
                text = LocalizationManager.GetString(
                    "SessionsView.Transcription.StartAnnotatingTab.ConvertToStandardAudio._labelIntroduction.ForVideo",
                    "In order to annotate, SayMore needs to convert this video to WAV PCM audio. " +
                    "During the conversion process, a standard audio file will be created from the " +
                    "source and added to the session's file list. The name of the new audio file will " +
                    "be the same as the name of the source with the suffix \"{0}\" added to the end. The source " +
                    "file will remain unchanged in the session's file list.", null, _labelConvertIntroduction);

                return(string.Format(text, suffix));
            }

            var encoding = AudioUtils.GetAudioEncoding(_file.PathToAnnotatedFile);

            text = LocalizationManager.GetString(
                "SessionsView.Transcription.StartAnnotatingTab.ConvertToStandardAudio._labelIntroduction.ForAudio",
                "The format of this audio file is '{0}'. In order to annotate, SayMore needs to convert " +
                "it to WAV PCM, which is a good, standard choice for archiving. During the conversion " +
                "process, a standard audio file will be created from the source and added to the " +
                "session's file list. The name of the new audio file will be the same as the source with " +
                "the suffix \"{1}\" added to the end. The source file will remain unchanged in the " +
                "session's file list.", null, _labelConvertIntroduction);

            return(string.Format(text, encoding, suffix));
        }