Added eSpeak link and information to OpenTX Speaker
This commit is contained in:
@@ -112,7 +112,10 @@
|
||||
</StackPanel>
|
||||
<Button Content="Generate Voice Files" Name="buttonGenerate" Click="buttonSaveFiles_Click" Margin="10,10,10,0" />
|
||||
<Separator Height="5" />
|
||||
<Image Name="openTXLogo" Height="75" Width="75" Source="/OpenTXspeak;component/icon.ico" MouseLeftButtonDown="openTXLogo_MouseLeftButtonDown" HorizontalAlignment="Right" Cursor="Hand" Margin="0,0,5,0"/>
|
||||
<StackPanel Width="Auto" Orientation="Horizontal">
|
||||
<TextBlock FontSize="18" Margin="55,0,55,0" VerticalAlignment="Center" MouseLeftButtonDown="InstallVoices_MouseLeftButtonDown" Cursor="Hand">Install Voices</TextBlock>
|
||||
<Image Name="openTXLogo" Height="75" Width="75" Source="/OpenTXspeak;component/icon.ico" MouseLeftButtonDown="openTXLogo_MouseLeftButtonDown" HorizontalAlignment="Right" Cursor="Hand" Margin="0,0,5,0"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
@@ -106,6 +106,12 @@ namespace OpenTXspeak
|
||||
aboutWindow.ShowDialog();
|
||||
}
|
||||
|
||||
private void InstallVoices_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
InstallVoicesWindow installVoicesWindow = new InstallVoicesWindow();
|
||||
installVoicesWindow.ShowDialog();
|
||||
}
|
||||
|
||||
private void buttonPlay_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
lvSentences_MouseDoubleClick(sender, null);
|
||||
|
||||
@@ -65,7 +65,14 @@
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="installvoices.xaml.cs">
|
||||
<DependentUpon>installvoices.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="sentencetables.cs" />
|
||||
<Page Include="installvoices.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="MainWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
@@ -106,6 +113,9 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="icon.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="eSpeak.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||
@@ -51,5 +51,5 @@ using System.Windows;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.5")]
|
||||
[assembly: AssemblyFileVersion("0.5")]
|
||||
[assembly: AssemblyVersion("0.7")]
|
||||
[assembly: AssemblyFileVersion("0.7")]
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,24 @@
|
||||
<Window x:Class="OpenTXspeak.InstallVoicesWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="Install Additional Voices" Height="269" Width="504">
|
||||
<Grid>
|
||||
<StackPanel Orientation="Vertical" >
|
||||
<TextBlock Margin="5,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap"
|
||||
Text="The English default voice (Microsoft Anna) is quite good. Microsoft does however not provide free voices for all languages. If there is no voice available for your language, you must install one on your your own. Any MS SAPI voice should work."/>
|
||||
<TextBlock Margin="5,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap"
|
||||
Text="Use the phrases SAPI and TTS to look for voices. TTS is the general term for synthetic speech and SAPI is Microsoft's voice interface." />
|
||||
<TextBlock Margin="5,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap"
|
||||
Text="There are several commercial alternatives available. These are high quility, but also expensive. There are also free open source alternatives. The downside to these is that the voices sound robotic. But they are clearly understandable." />
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Margin="5,5,10,0" Width="380" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap"
|
||||
Text="The author of this application used the free eSpeak voices to test voice generation. Many languages are supported. Click the image on the right to go to eSpeaks project page. There you can find out if your language is supported and download the voice package." />
|
||||
<TextBlock>
|
||||
<Hyperlink NavigateUri="http://espeak.sourceforge.net/" RequestNavigate="Hyperlink_RequestNavigate">
|
||||
<Image Stretch="None" Source="/OpenTXspeak;component/eSpeak.png" Cursor="Hand" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Navigation;
|
||||
|
||||
|
||||
|
||||
namespace OpenTXspeak
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for installvoices.xaml
|
||||
/// </summary>
|
||||
public partial class InstallVoicesWindow : Window
|
||||
{
|
||||
public InstallVoicesWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
|
||||
{
|
||||
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user